ConnectToMe and RevConnectToMe
 

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

ConnectToMe and RevConnectToMe

Started by TTB, 17 October, 2005, 03:57:19

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TTB

Hi,

I was just finding out the how this exactly works... This text is from a website, but could be useful for some ppl, and should also be, in my oppinion on this forum!

function ConnectToMe(user,data)
	local _,_,nick = string.find(data, "(%S+)%s+%S+|$")
	local nickonline = GetItemByName(nick)
end

ConnectToMe  :

*  and  are the host and port that the client wishes  to connect to. 
*  is the remote user that should initiate the connection. 

The server sends this message unaltered to .  must open a TCP connection to :.



function RevConnectToMeArrival(user,data)
	local _,_,nick = string.find(data, "(%S+)|$")
	local nickonline = GetItemByName(nick)
end

A passive client may send this to cause a peer to send a $ConnectToMe back.

$RevConnectToMe   

*  is the sender of the message. 
*  is the user which should send to $ConnectToMe. 

The server must send this message unmodified to . If  is an active client, it must send a $ConnectToMe to . If not, it must ignore the message. XXX DC++ does not ignore the message, but replies with a $RevConnectToMe. now they know they are both passive, and no further connection attempts have to be made. /sed

Source == *click*


TTB

(? ?.??.-> Admin @ Surfnet hubs <-.??.???)

SMF spam blocked by CleanTalk