Author Topic: ConnectToMe and RevConnectToMe  (Read 1262 times)

0 Members and 1 Guest are viewing this topic.

Offline TTB

  • Lord
  • ***
  • Posts: 436
  • Karma: +17/-1
ConnectToMe and RevConnectToMe
« on: 17 October, 2005, 03:57:19 »
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!

Code: [Select]
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 <-.??.???)

PtokaX forum

ConnectToMe and RevConnectToMe
« on: 17 October, 2005, 03:57:19 »