$Up

Technical discussion about the NMDC and <a href="http://dcpp.net/ADC.html">ADC</A> protocol. The NMDC protocol is documented in the <a href="http://dcpp.net/wiki/">Wiki</a>, so feel free to refer to it.

Moderator: Moderators

Locked
wastingtape
Posts: 7
Joined: 2003-09-02 04:24
Location: Hawaiian islands
Contact:

$Up

Post by wastingtape » 2003-09-08 04:22

In hub to hub communication, the second parameter of the $Up command is the hub's own IP. I was wondering. Does this have to be the numerical dotted notation IP, or can it be a DNS hostname instead?

ivulfusbar
Posts: 506
Joined: 2003-01-03 07:33

Post by ivulfusbar » 2003-09-08 04:59

well, it depends on what the hubs can handle, and how they treat the information. But if we look at the rest of the protocol, ip should be used. Thats atleast the case for $Search, $SR and $ConnectToMe. Which hubsoft are you thinking of. Take dc++ for example, its "resolves" the dnsname (if you have put one in) at startup. So best way is to test what works and or take a peak on what is sent ;))
Everyone is supposed to download from the hubs, - I don´t know why, but I never do anymore.

wastingtape
Posts: 7
Joined: 2003-09-02 04:24
Location: Hawaiian islands
Contact:

Post by wastingtape » 2003-09-08 05:29

Yeah. That probably is the best way. I suppose you are right about the rest of the protocol using only ip. Maybe i'll add in some lookup functionality. :P

I didn't have any particular hubsoft in mind. I'm actually having difficulty finding a DC hub that supports mult-hub connectivity that i can test mine against.

Locked