00001 #ifndef _PACKETS_H_ 00002 #define _PACKETS_H_ 00003 00004 typedef unsigned char pack_ubyte; 00005 typedef unsigned short int pack_uint16; 00006 typedef unsigned long pack_uint32; 00007 00008 int pack(pack_ubyte *buf, int maxsize, char *fmt, ...); 00009 int unpack(pack_ubyte *buf, int maxsize, char *fmt, ...); 00010 00011 #endif