git-svn-id: svn://db.shs.com.ru/libs@112 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
24
cd_utils/cdutils_protocol.h
Normal file
24
cd_utils/cdutils_protocol.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef CDUTILS_PROTOCOL_H
|
||||
#define CDUTILS_PROTOCOL_H
|
||||
|
||||
#include "pibytearray.h"
|
||||
|
||||
namespace CDUtils {
|
||||
|
||||
enum CDPacketType {CD_Ping, CD_Pong, CD_KQuery, CD_KSend, CD_Command, CD_XData, CD_XQuery};
|
||||
|
||||
# pragma pack(push,1)
|
||||
struct PacketHeader {
|
||||
int session_id;
|
||||
int type; // CDPacketType
|
||||
};
|
||||
|
||||
struct PacketKSend : PacketHeader {
|
||||
PIByteArray kdata; // file k.dat
|
||||
};
|
||||
|
||||
# pragma pack(pop)
|
||||
|
||||
}
|
||||
|
||||
#endif // CDUTILS_PROTOCOL_H
|
||||
Reference in New Issue
Block a user