Passive user check

Which hub software is the best? Where can I find script XXX? Discuss it here...(no, this is not for advertising your hub...)

Moderator: Moderators

Locked
Phantom
Posts: 72
Joined: 2003-01-11 20:13
Location: New Zealand

Passive user check

Post by Phantom » 2003-02-20 16:16

Just wondering, is there an easy way to check wether a user is active or passive when they join? I thought maybe just catching the $MyInfo's and processing them, but that won't catch NMDC users or tag hiders.

Sedulus
Forum Moderator
Posts: 687
Joined: 2003-01-04 09:32
Contact:

Post by Sedulus » 2003-02-20 17:17

send a RevConnectToMe
if they reply with a connecttome, they're active
nmdc doesn't reply
and dc++ replies with a revconnecttome
http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)

Sedulus
Forum Moderator
Posts: 687
Joined: 2003-01-04 09:32
Contact:

Post by Sedulus » 2003-02-20 17:18

s/nmdc/otherwise, nmdc/
http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)

DamionNH
Posts: 25
Joined: 2003-01-07 11:05

Post by DamionNH » 2003-02-21 13:13

Okay, let me see if I have this straight.

Send RevConnectToMe

Acitve NMDC and DC++ reply with ConnectToMe

Passive NMDC doesn't reply
Passive DC++ replies with with RevConnectToMe

is this correct?
Owner of Lurkers Lair a Phoenix Rising Hub

ivulfusbar
Posts: 506
Joined: 2003-01-03 07:33

Post by ivulfusbar » 2003-02-22 13:16

What does to know if a client is passive or active? a Bot? a client? the hub?
Everyone is supposed to download from the hubs, - I don´t know why, but I never do anymore.

Phantom
Posts: 72
Joined: 2003-01-11 20:13
Location: New Zealand

Post by Phantom » 2003-02-23 16:32

Thanks for the replies.
I want this to be used by a script.

TasMan
Posts: 196
Joined: 2003-01-03 08:31
Location: Canada
Contact:

Post by TasMan » 2003-02-23 16:36

They are also passive if they search with "$Search Hub:<name>" (active searches look like this : "$Search <ip>:<port>")

Phantom
Posts: 72
Joined: 2003-01-11 20:13
Location: New Zealand

Post by Phantom » 2003-02-23 16:42

yeah, I know that one. I wanted to know about checking on-join to the hub.

TasMan
Posts: 196
Joined: 2003-01-03 08:31
Location: Canada
Contact:

Post by TasMan » 2003-02-23 16:47

just out of curiousity, how long do you wait for the client to respond to the RevConnectToMe before you consider passive? If it doesn't reply, then how would you know?

Phantom
Posts: 72
Joined: 2003-01-11 20:13
Location: New Zealand

Post by Phantom » 2003-02-23 16:51

good point. I'll just treat it as a passive user then I suppose. Its not going to kick them or anything, i'm just trying to get as many passive users into active as possible. Most of the passive users in my hub haven't even attempted to go into active, so I wanted to give them some annoying nudges in the right direction.

TasMan
Posts: 196
Joined: 2003-01-03 08:31
Location: Canada
Contact:

Post by TasMan » 2003-02-23 16:53

ah ok....I figured it was some sort of filter...makes sense now :) !

ivulfusbar
Posts: 506
Joined: 2003-01-03 07:33

Post by ivulfusbar » 2003-02-23 17:30

well, you could annoy them on every "passive" use of the protocol, i.e either on Search Hub: or RevConnectToMe ;))
Everyone is supposed to download from the hubs, - I don´t know why, but I never do anymore.

Da8add1e
Posts: 30
Joined: 2003-02-04 13:17
Location: Saddams Bunker :)

Post by Da8add1e » 2003-02-24 07:29

I like that ivulfusbar, you could pop up a message explaining how to configure Active through a firewall, maybe just on first use or something.

I'd say if you have a firewall you should be in active, only if you don't have a firewall is passive really much use.

Then again lots of ppl still seem to think that Passive is needed if you have a firewall so at least it would inform them :idea:
Need NOT Greed (don't abuse poor countries)
Pay the Poor (increase minimum wage)
Tax the Rich (100% SuperTax rate)
(Do ya think thats maybe a little left-wing?)

Phantom
Posts: 72
Joined: 2003-01-11 20:13
Location: New Zealand

Post by Phantom » 2003-02-24 15:33

Thats the whole idea, not many people have ever bothered trying active, cos when they first try dc++ everyone tells them it doesn't work cos you are in active, and to switch to passive.
I'm just trying to nudge them all back into trying out active again. Esp since I am using the $userip, and giving ppl a client that supports it. Its only a matter of getting them to configure their port.

Locked