annotate libpurple/protocols/msn/p2p.h @ 30763:83eb90d18a96

Actually add the new file.
author masca@cpw.pidgin.im
date Thu, 03 Jun 2010 21:16:24 +0000
parents
children d4869cd86680
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
30763
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
1 #ifndef MSN_P2P_H
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
2 #define MSN_P2P_H
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
3
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
4 #include "msg.h"
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
5
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
6 #pragma pack(push,1)
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
7 typedef struct {
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
8 guint32 session_id;
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
9 guint32 seq_id;
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
10 guint64 offset;
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
11 guint64 total_size;
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
12 guint32 length;
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
13 guint32 flags;
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
14 guint32 ack_id;
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
15 guint32 ack_uid;
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
16 guint64 ack_size;
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
17 /* guint8 body[1]; */
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
18 } MsnP2PBinaryHeader;
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
19 #pragma pack(pop)
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
20
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
21 typedef enum
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
22 {
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
23 P2P_NO_FLAG = 0x0, /**< No flags specified */
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
24 P2P_OUT_OF_ORDER = 0x1, /**< Chunk out-of-order */
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
25 P2P_ACK = 0x2, /**< Acknowledgement */
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
26 P2P_PENDING_INVITE = 0x4, /**< There is a pending invite */
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
27 P2P_BINARY_ERROR = 0x8, /**< Error on the binary level */
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
28 P2P_MSN_OBJ_DATA = 0x20, /**< MsnObject data */
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
29 P2P_WML2009_COMP = 0x1000000, /**< Compatibility with WLM 2009 */
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
30 P2P_FILE_DATA = 0x1000030 /**< File transfer data */
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
31 } MsnP2PHeaderFlag;
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
32 /* Info From:
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
33 * http://msnpiki.msnfanatic.com/index.php/MSNC:P2Pv1_Headers#Flags
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
34 * http://trac.kmess.org/changeset/ba04d0c825769d23370511031c47f6be75fe9b86
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
35 * #7180
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
36 */
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
37
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
38 #define P2P_PACKET_HEADER_SIZE sizeof(MsnP2PBinaryHeader)
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
39
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
40
83eb90d18a96 Actually add the new file.
masca@cpw.pidgin.im
parents:
diff changeset
41 #endif /* MSN_P2P_H */