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* (http://dc.selwerd.nl/doc/Command_Types_(client_to_server).html)