Packet Dump of Client-Client Handshake

From DCppWiki

Jump to: navigation, search

Peer 1 is the client connection to Peer 2. Peer 2 has requested the connection with $ConnectToMe on the hub they are both connected to. Peer 1 connects and then Peer 2 asks for Peer 1's filelist. Both are running RevConnect 0.668.


Contents

Peer 1

$MyNick peer1|$Lock EXTENDEDPROTOCOLABCABCABCABCABCABC Pk=DCPLUSPLUS0.668ABCABC|

Peer 2

$MyNick peer2|$Lock EXTENDEDPROTOCOLABCABCABCABCABCABC Pk=DCPLUSPLUS0.668ABCABC|$Supports MiniSlots XmlBZList ADCGet TTHL TTHF GetZBlock ZLIG |$Direction Download 17762|$Key ........A .....0.0. 0. 0. 0. 0. 0.|

Peer 1

$Supports MiniSlots XmlBZList ADCGet TTHL TTHF GetZBlock ZLIG |$Direction Upload 6494|$Key ........A .....0.0. 0. 0. 0. 0. 0.|

Peer 2

$Get files.xml.bz2$1|

Peer 1

$FileLength 220057|

Peer 2

$Send|

Peer 1

<<raw data of file>>


Connection can be dropped at that point. You know the file is done when you have 220057 bytes of raw data. Or Peer 2 can send another $Get command.