# HG changeset patch # User masca@cpw.pidgin.im # Date 1294113996 0 # Node ID 135868ec0aa98c370bc9a85b6bb32a46ab056e9b # Parent 8c6a1fa21f437d266947cadee7aa960bd1b080ca# Parent 9be4761c87d4a6638cb69cf027e410ca96fb2db1 propagate from branch 'im.pidgin.pidgin' (head 8707e10aca1fa6ef13a2a00f24760fb2ed97f641) to branch 'im.pidgin.cpw.masca.p2p' (head 941c9038bb0859c618dd334ada00158485678d24) diff -r 8c6a1fa21f43 -r 135868ec0aa9 libpurple/protocols/msn/p2p.h --- a/libpurple/protocols/msn/p2p.h Mon Jan 03 19:18:07 2011 +0000 +++ b/libpurple/protocols/msn/p2p.h Tue Jan 04 04:06:36 2011 +0000 @@ -55,6 +55,37 @@ guint32 base_id; } MsnP2Pv2Header; +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;