![]() |
PEER_MSG_FILE |
Channel: 0 |
Sub-packet of PEER_MSG for MSGTYPE 3. This packet is used to initiate/acknowledge a file transfer. It is used only in version 7 of the protocol; for version 8, use PEER_MSG_GREET with an appropriate sub command. Note, however, that some clients claim to do v8 that still use this, including Trillian 0.73.
Parameters
| Data type | Content | Name | Description |
| WORD.B | xx xx | PORT | The port to which the file should be sent. Note this and PORT2 are empty in the request. |
| WORD | xx xx | PAD | Unknown or padding. |
| LNTS | xx xx ... | NAME | The file name. This will be empty in the ACK. |
| DWORD.L | xx xx xx xx | FILELEN | The length of the file in bytes. |
| DWORD.L | xx xx xx xx | UNKNOWN | If I'd know, I'd be lucky. Looks like a piece of text. New for version 7; for version 6, this is left out. |
| DWORD.L | xx xx xx xx | PORT2 | The port again. |
Examples
00:48:15 Incoming TCP packet (6 - smo@karlsruhe): PEER_MSG
TCP MSG seq fffc type 3 status 0 flags 1: 'asdf'
ac c1 PORT - should be empty
c4 00 PAD - should be empty
0b 00 42 69 6c 64 20 31 2e 6a 70 67 00
NAME - "Bild1.jpg"
bf 1e 01 00 FILELEN - 73407
00 00 00 00 PORT2 - 0
Attribution
Submitted by: tadu@gmx.de.
