soc.2010.msn-tlc: daa1c905: Actually add the new file.
masca at cpw.pidgin.im
masca at cpw.pidgin.im
Fri Jun 4 21:35:56 EDT 2010
-----------------------------------------------------------------
Revision: daa1c9055c681df9e6c617eda9894c771c22df1d
Ancestor: 17457a26c2a06781fae929e78e8b7d3bf59f3831
Author: masca at cpw.pidgin.im
Date: 2010-06-03T21:16:24
Branch: im.pidgin.soc.2010.msn-tlc
URL: http://d.pidgin.im/viewmtn/revision/info/daa1c9055c681df9e6c617eda9894c771c22df1d
Added files:
libpurple/protocols/msn/p2p.h
ChangeLog:
Actually add the new file.
-------------- next part --------------
============================================================
--- libpurple/protocols/msn/p2p.h 88736c70817e5617d91b67125abc2ceec45962fd
+++ libpurple/protocols/msn/p2p.h 88736c70817e5617d91b67125abc2ceec45962fd
@@ -0,0 +1,41 @@
+#ifndef MSN_P2P_H
+#define MSN_P2P_H
+
+#include "msg.h"
+
+#pragma pack(push,1)
+typedef struct {
+ guint32 session_id;
+ guint32 seq_id;
+ guint64 offset;
+ guint64 total_size;
+ guint32 length;
+ guint32 flags;
+ guint32 ack_id;
+ guint32 ack_uid;
+ guint64 ack_size;
+/* guint8 body[1]; */
+} MsnP2PBinaryHeader;
+#pragma pack(pop)
+
+typedef enum
+{
+ P2P_NO_FLAG = 0x0, /**< No flags specified */
+ P2P_OUT_OF_ORDER = 0x1, /**< Chunk out-of-order */
+ P2P_ACK = 0x2, /**< Acknowledgement */
+ P2P_PENDING_INVITE = 0x4, /**< There is a pending invite */
+ P2P_BINARY_ERROR = 0x8, /**< Error on the binary level */
+ P2P_MSN_OBJ_DATA = 0x20, /**< MsnObject data */
+ P2P_WML2009_COMP = 0x1000000, /**< Compatibility with WLM 2009 */
+ P2P_FILE_DATA = 0x1000030 /**< File transfer data */
+} MsnP2PHeaderFlag;
+/* Info From:
+ * http://msnpiki.msnfanatic.com/index.php/MSNC:P2Pv1_Headers#Flags
+ * http://trac.kmess.org/changeset/ba04d0c825769d23370511031c47f6be75fe9b86
+ * #7180
+ */
+
+#define P2P_PACKET_HEADER_SIZE sizeof(MsnP2PBinaryHeader)
+
+
+#endif /* MSN_P2P_H */
More information about the Commits
mailing list