diff options
author | Jorge Villase?or <masca@cpw.pidgin.im> | 2010-12-15 06:17:36 +0000 |
---|---|---|
committer | Jorge Villase?or <masca@cpw.pidgin.im> | 2010-12-15 06:17:36 +0000 |
commit | ff0b0ccd7954f6accf0d75cc0ea8ba080de46b3f (patch) | |
tree | d7fed5e4b7fcc8d9d5bc7fb5d4aff887610d2040 | |
parent | 8bf22c4f91966dec650806ce4a578e81abbea43f (diff) | |
download | pidgin-ff0b0ccd7954f6accf0d75cc0ea8ba080de46b3f.tar.gz |
Add some constants used by P2Pv2.
-rw-r--r-- | libpurple/protocols/msn/p2p.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/libpurple/protocols/msn/p2p.h b/libpurple/protocols/msn/p2p.h index c13f90eaaf..baba7e11e8 100644 --- a/libpurple/protocols/msn/p2p.h +++ b/libpurple/protocols/msn/p2p.h @@ -56,6 +56,37 @@ typedef struct { } MsnP2Pv2Header; #pragma pack(pop) +typedef enum +{ + OP_NONE = 0x00; /**< None, Nothing required. */ + OP_SYN = 0x01; /**< SYN, just like TCP. */ + OP_RAK = 0x02; /**< Request for Ack. */ +} OpCode + +typedef enum +{ + TF_FIRST = 0x01; /**< The first package. */ + TF_OBJ = 0x04; /**< Payload contains binary data for MsnObject. */ + TF_FILE = 0x06; /**< Payload contains binary data. */ +} TF; + +typedef enum +{ + TLP_PEER_INFO = 0x01; /**< Client peer info */ + TLP_ACK = 0x02; /**< ACK */ + TLP_NAK = 0x03; /**< NAK */ +} TLP; + +typedef enum +{ + TLP_LEN_PEER_INFO = 12; + TLP_LEN_ACK = 4; + TLP_LEN_NAK = 4; +} TLPLength; + +#define DLP_REMAINING 0x01; /**< Indicates the remaining data to transfer.*/ +#define DLP_REMAINING_LEN 8 + typedef struct { guint32 value; |