BinaryPacket.h

См. документацию.
00001 /*
00002  * BinaryPacket.h
00003  *
00004  *  Created on: 25.05.2011
00005  *      Author: nick
00006  */
00007 
00008 #ifndef BINARYPACKET_H_
00009 #define BINARYPACKET_H_
00010 #include <stdlib.h>
00011 struct BibaryPacket;
00012 
00013 #pragma pack(push,1)
00014 struct BibaryPacketHeader{
00015         unsigned long int pktID;
00016         unsigned short headSize;
00017         size_t bodySize;
00018 };
00019 #pragma pack(pop)
00020 
00021 struct BibaryPacket {
00022         BibaryPacketHeader header;
00023         void * body;
00024 };
00025 #endif /* BINARYPACKET_H_ */