FlexHub Forum

Xfer (NMDC) allowing crossprotocol downloads/searches (work in progress)

Offline FlipFlop™

  • FlexHub Developer
  • *****
  • 503
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):
« Last Edit: September 16, 2011, 01:16:22 by FlipFlop™ »
Check the new FlexHubList!           Add awesome statistics like this for your hub!

This post is a natural product. The slight variations in spelling and grammar enhance its individual character and beauty and in no way are to be considered flaws or defects.

Offline FlipFlop™

  • FlexHub Developer
  • *****
  • 503
It may be possible to use $ADC and use ADC as a subprotocol of NMDC  ;D
Check the new FlexHubList!           Add awesome statistics like this for your hub!

This post is a natural product. The slight variations in spelling and grammar enhance its individual character and beauty and in no way are to be considered flaws or defects.

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.
« Last Edit: September 22, 2011, 15:18:41 by Crise »

Offline FlipFlop™

  • FlexHub Developer
  • *****
  • 503
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...
Check the new FlexHubList!           Add awesome statistics like this for your hub!

This post is a natural product. The slight variations in spelling and grammar enhance its individual character and beauty and in no way are to be considered flaws or defects.

Any progress made on this ... getting antsy atm and feel like programming :p