diff options
author | Jorge Villase?or <masca@cpw.pidgin.im> | 2011-01-04 04:06:36 +0000 |
---|---|---|
committer | Jorge Villase?or <masca@cpw.pidgin.im> | 2011-01-04 04:06:36 +0000 |
commit | 7b6ff040f729aba959a77121c09db45ccdace30c (patch) | |
tree | feeeafb442537f134800407cbcb6b6dbb072a37e | |
parent | 54cbbb1914b9194864dfbae75a1628b1c33952ec (diff) | |
parent | ff0b0ccd7954f6accf0d75cc0ea8ba080de46b3f (diff) | |
download | pidgin-7b6ff040f729aba959a77121c09db45ccdace30c.tar.gz |
propagate from branch 'im.pidgin.pidgin' (head e1c3051e704c3ba859ee1b85f45bba439c801554)
to branch 'im.pidgin.cpw.masca.p2p' (head 4f4c81c94b12c6a1103e02073908a29daf22f921)
-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 b1bec93a9f..6f8ffd5511 100644 --- a/libpurple/protocols/msn/p2p.h +++ b/libpurple/protocols/msn/p2p.h @@ -55,6 +55,37 @@ typedef struct { 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; |