FlexHub Forum

Protocol talk => ADC/NMDC Cross Protocol => Topic started by: FlipFlop™ on September 16, 2011, 01:04:32

Title: Xfer (NMDC) allowing crossprotocol downloads/searches (work in progress)
Post by: FlipFlop™ on September 16, 2011, 01:04:32
The text below is still in progress, just posting it here to be able to discuss it.

The idea for this extension is to provide compatibility between ADC and NMDC users, to allow them to search and download from eachother.

Xfer will provide an NMDC connection with sufficient data to be able to receive or initiate an ADC client-client connection and receive and send ADC search results. So it should only be about upgrading NMDC, not downgrading ADC. A client supporting Xfer will also support Xfer in NMDC. Basically a client supporting Xfer should send ADC-traffic to ADC users.

Proposed syntax:
$Xfer <sourcesid> <targetsid> <fieldname><data>

Fieldnames:
PD = PID  (will be sent to the hub only to check CID, hub will filter it)
ID = CID
NM = NMDC command
AD = ADC command

In FlexHub the client SID in NMDC can be retrieved from the $Lock:
EXTENDEDPROTOCOL_FLEXHUB_MULTIPROTOCOL_<SID>

The PID and CID are known to the client, so we can mimic an ADC PID/CID validation.

Searching:

Replying to searches (active):

Replying to searches (passive):

Client connections (incoming):

Client connections (outgoing):
Title: Re: Xfer (NMDC) allowing crossprotocol downloads/searches (work in progress)
Post by: FlipFlop™ on September 22, 2011, 09:55:00
It may be possible to use $ADC and use ADC as a subprotocol of NMDC  ;D
Title: Re: Xfer (NMDC) allowing crossprotocol downloads/searches (work in progress)
Post by: Crise on September 22, 2011, 15:04:11
I will comment on this, I at least don't like the idea of sending the users PID out over the network repeatedly, it is called what it is called for a reason :) (yeah I know that it is included in INF).

So yes if the thing with $ADC works out that would be great.
Title: Re: Xfer (NMDC) allowing crossprotocol downloads/searches (work in progress)
Post by: FlipFlop™ on September 22, 2011, 17:32:54
The PID is never broadcasted, PID is only send to hub, so the hub can confirm that client actually has the matching PID for the CID it sends, it's only the CID (hashed PID) that gets broadcasted just like in ADC.

But $ADC could be the way. To be continued...
Title: Re: Xfer (NMDC) allowing crossprotocol downloads/searches (work in progress)
Post by: iceman50 on November 12, 2011, 22:26:26
Any progress made on this ... getting antsy atm and feel like programming :p