| 74 TF_FILE = 0x06 /**< Payload contains binary data. */ |
74 TF_FILE = 0x06 /**< Payload contains binary data. */ |
| 75 } TF; |
75 } TF; |
| 76 |
76 |
| 77 typedef enum |
77 typedef enum |
| 78 { |
78 { |
| 79 P2P_TLV_TYPE_PEER_INFO = 0x01, /**< Client peer info */ |
79 P2P_HEADER_TLV_TYPE_PEER_INFO = 0x01, /**< Client peer info */ |
| 80 P2P_TLV_TYPE_ACK = 0x02, /**< ACK */ |
80 P2P_HEADER_TLV_TYPE_ACK = 0x02, /**< ACK */ |
| 81 P2P_TLV_TYPE_NAK = 0x03 /**< NAK */ |
81 P2P_HEADER_TLV_TYPE_NAK = 0x03 /**< NAK */ |
| 82 } P2PTLVType; |
82 } P2PHeaderTLVType; |
| 83 |
83 |
| 84 typedef enum |
84 typedef enum |
| 85 { |
85 { |
| 86 P2P_TLV_LEN_PEER_INFO = 12, |
86 P2P_DATA_TLV_REMAINING = 0x01, /**< Indicates the remaining data to transfer.*/ |
| 87 P2P_TLV_LEN_ACK = 4, |
87 } P2PDataTLVType; |
| 88 P2P_TLV_LEN_NAK = 4 |
|
| 89 } P2PTLVLength; |
|
| 90 |
88 |
| 91 typedef enum |
89 typedef enum |
| 92 { |
90 { |
| 93 P2P_PI_PVER = 0x0200, |
91 P2P_PI_PVER = 0x0200, |
| 94 P2P_PI_IMP_ID = 0, |
92 P2P_PI_IMP_ID = 0, |
| 95 P2P_PI_VER = 0x0e00, |
93 P2P_PI_VER = 0x0e00, |
| 96 P2P_PI_RES = 0, |
94 P2P_PI_RES = 0, |
| 97 P2P_PI_CAPS = 0x0000010f |
95 P2P_PI_CAPS = 0x0000010f |
| 98 } P2PPeerInfoVal; |
96 } P2PPeerInfoVal; |
| 99 |
|
| 100 #define DLP_REMAINING 0x01; /**< Indicates the remaining data to transfer.*/ |
|
| 101 #define DLP_REMAINING_LEN 8 |
|
| 102 |
97 |
| 103 typedef struct |
98 typedef struct |
| 104 { |
99 { |
| 105 guint32 value; |
100 guint32 value; |
| 106 } MsnP2PFooter; |
101 } MsnP2PFooter; |