Client->Client question

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
r4v3
Posts: 22
Joined: 2003-01-14 16:24
Location: Poland

Client->Client question

Post by r4v3 » 2003-01-23 18:06

Hello , i have 2 questions :

1)Does client->client lock2key algoritm is the same as in client->hub ?
(still xor byte = 5 ?)

2)Where can i find client->client protocol specification ?

Thats all
See ya
Sorry for my ENG , but i hope u'll understand me.GreetZ

ftp
Posts: 19
Joined: 2003-01-22 19:17
Location: Some where By the sea
Contact:

Question 2...

Post by ftp » 2003-01-23 18:16


r4v3
Posts: 22
Joined: 2003-01-14 16:24
Location: Poland

Post by r4v3 » 2003-01-23 19:17

Thx for link but im looking for client<->client protocol documentation , not client<->server.
Sorry for my ENG , but i hope u'll understand me.GreetZ

ftp
Posts: 19
Joined: 2003-01-22 19:17
Location: Some where By the sea
Contact:

Post by ftp » 2003-01-23 19:30

I maybe mistaken but I belive there is no direct client to client protocal it all goes through the hub

Atomic Jo
Posts: 62
Joined: 2003-01-04 03:50
Location: Québec, Canada
Contact:

Post by Atomic Jo » 2003-01-23 21:30


ender
Posts: 224
Joined: 2003-01-03 17:47

Post by ender » 2003-01-24 02:47

http://odc.sf.net/ -> click on the first link, then go to the docs page. There are 3 protocol specifications, one of them covers Client-client protocol, too.

Gumboot
Posts: 22
Joined: 2003-01-15 20:08
Location: New Zealand

Post by Gumboot » 2003-01-24 02:51

Does client->client lock2key algoritm is the same as in client->hub ? (still xor byte = 5 ?)
Yes.
I maybe mistaken but I belive there is no direct client to client protocal it all goes through the hub
You're mistaken. :!: Just after connecting to another client (for downloading) the one downloading uses the client->client protocol to inform the other of the file to download and the resume offset.

r4v3
Posts: 22
Joined: 2003-01-14 16:24
Location: Poland

Post by r4v3 » 2003-01-24 18:09

Heh sth is not working
Strange ,I did as it was written in few protocal documentations
How I do this now:
M - My client (connecting)
O - Other client (listening)

for connect i send:
1)M:$ConnectToMe ONick myIP myPort
2)make serverSocket on port myPort
3)listening on port myPort
4)O:$MyNick nick|
5)do nothing
6)O:$Lock BLABLABLA Pk=WWWWWW|
7)Decode lock with exactly the same function as Hub_Lock decode
8)M:$Key decodedKey Pk=somePk|
9)... im waiting for "$Key .........." but dont recive it

to Send i use the same function as sending to hub...
communication with hub is OK but only with C->C i have this problem.
GreetZ
Sorry for my ENG , but i hope u'll understand me.GreetZ

r4v3
Posts: 22
Joined: 2003-01-14 16:24
Location: Poland

Post by r4v3 » 2003-01-24 18:18

and 1 more : i have this problem only (im not sure) with clients that sends Lock:EXTENDEDPROTOCALABCABCABCABCABCABC , is this ver 2.0 of protocal ? should i send sth differend as key ?
Help me :D
Sorry for my ENG , but i hope u'll understand me.GreetZ

Neg
Posts: 20
Joined: 2003-01-19 07:05

Post by Neg » 2003-01-24 18:19

There is no Pk=somepk in the $Key string i think.

r4v3
Posts: 22
Joined: 2003-01-14 16:24
Location: Poland

Post by r4v3 » 2003-01-24 18:23

Other clients sends to me Pk and i tried to send Lock without Pk - it doesnt work
Sorry for my ENG , but i hope u'll understand me.GreetZ

Neg
Posts: 20
Joined: 2003-01-19 07:05

Post by Neg » 2003-01-24 18:25

There is a Pk in the $Lock i did not say there wasnot did i? but there is none in the $Key.

r4v3
Posts: 22
Joined: 2003-01-14 16:24
Location: Poland

Post by r4v3 » 2003-01-24 18:30

sorry i mistaken in the forum in source i have Pk in Lock not in Key.
Can someone write o Key generated from EXTENDEDPROTOCAL.........
But write it in Integer not in chars.
Sorry for my ENG , but i hope u'll understand me.GreetZ

Sedulus
Forum Moderator
Posts: 687
Joined: 2003-01-04 09:32
Contact:

Post by Sedulus » 2003-01-25 08:48

look at these for examples of communication:
http://wza.digitalbrains.com/users/walt ... /sniffing/

key for EXTENDEDPROTOCOLABCABCABCABCABCABC is:
14d1 c011 b0a0 1010 4120 d1b1 b1c0 c030 d030 1020 3010 2030 1020 3010 2030 1020 3010
in two byte hex (no funny endianness like od(1) produces)
http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)

Locked