possible to get passive mode slots using this?
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

possible to get passive mode slots using this?

Started by Mardeg, 29 April, 2006, 08:17:53

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mardeg

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?

bluebear

Quote from: Mardeg 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?

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]

bastya_elvtars

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.

bluebear

Quote from: bastya_elvtars on 15 May, 2006, 16:27:21
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]

bastya_elvtars

PtokaX uses an UDP port for this purpose.
Everything could have been anything else and it would have just as much meaning.

SMF spam blocked by CleanTalk