Author Topic: possible to get passive mode slots using this?  (Read 2535 times)

0 Members and 1 Guest are viewing this topic.

Offline Mardeg

  • Forum Ace
  • *****
  • Posts: 75
  • Karma: +7/-1
    • The most bloated human-readable email hider in the world!
possible to get passive mode slots using this?
« on: 29 April, 2006, 08:17:53 »
Currently hubs with a *slots* command only return results from active users.
Could this extension listen on a UDP socket for passive user results of an "active mode" search?

PtokaX forum

possible to get passive mode slots using this?
« on: 29 April, 2006, 08:17:53 »

Offline bluebear

  • Double Ace
  • *
  • Posts: 116
  • Karma: +12/-0
  • Life is a bitch - And then you marry one!
Re: possible to get passive mode slots using this?
« Reply #1 on: 15 May, 2006, 15:09:54 »
Currently hubs with a *slots* command only return results from active users.
Could this extension listen on a UDP socket for passive user results of an "active mode" search?

You can make a very simple script that can do this.
However, it would be rather resouce full and not recommended on larger hubs.

1. create udp socket
2. broadcast a $Search to all users (e.g. search for xxx, txt, nfo something all plls have)
3. read data from port you want
4. parse the $Sr command and get the slot info
5. do whatever you need to do with this info

If you have any firewall/router you must take the same steps for udp as you do for dc++ client in active mode.
Sincerely,
bluebear
--
http://www.thewildplace.dk/ is is closed - Use the following mirrors instead
http://bluebear.psycho-chihuahua.net
http://pxextension.piratez.dk/
[Lua extensions - Chat stats - YnHub PMSpy - DC Source code - and more]

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 730
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
Re: possible to get passive mode slots using this?
« Reply #2 on: 15 May, 2006, 16:27:21 »
Doesn't PtokaX already listen on a UDP socket anyway for (useless) serverside search purposes?
Everything could have been anything else and it would have just as much meaning.

Offline bluebear

  • Double Ace
  • *
  • Posts: 116
  • Karma: +12/-0
  • Life is a bitch - And then you marry one!
Re: possible to get passive mode slots using this?
« Reply #3 on: 16 May, 2006, 11:09:43 »
Doesn't PtokaX already listen on a UDP socket anyway for (useless) serverside search purposes?

I can't say if ptokax itself listen on a UDP socket for searches, but I doubt it does.
Normally a Direct Connect protocol server do only work with TCP. And for DC
UPD is only used to deliver search results ($SR) to an active mode client.
Sincerely,
bluebear
--
http://www.thewildplace.dk/ is is closed - Use the following mirrors instead
http://bluebear.psycho-chihuahua.net
http://pxextension.piratez.dk/
[Lua extensions - Chat stats - YnHub PMSpy - DC Source code - and more]

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 730
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
Re: possible to get passive mode slots using this?
« Reply #4 on: 16 May, 2006, 12:16:53 »
PtokaX uses an UDP port for this purpose.
Everything could have been anything else and it would have just as much meaning.

PtokaX forum

Re: possible to get passive mode slots using this?
« Reply #4 on: 16 May, 2006, 12:16:53 »