magic number - sizes of packets

This commit is contained in:
Gerolf Ziegenhain 2015-01-04 13:21:35 +01:00
parent 9d540cf369
commit 45716af4f9

View File

@ -31,16 +31,16 @@
#include <mach/mach.h> #include <mach/mach.h>
#endif #endif
#define DEBUG 0
#define MAXDATASIZE 1024 // max number of bytes we can get at once #define MAXDATASIZE 1024 // max number of bytes we can get at once
#define DIS 0x0002 // for command packet // Structures for the packets: unsigned short command
#define DAT 0x0003 // for command packet #define DIS 0x0002 // disconnect
#define CON 0x0004 #define DAT 0x0003
#define CON 0x0004 // connect
#define ACK 0x0005 #define ACK 0x0005
#define DEBUG 0
// This structure will be used to (dis-)connect to KOB servers // This structure will be used to (dis-)connect to KOB servers
struct command_packet_format{ struct command_packet_format{
unsigned short command; // CON / DIS unsigned short command; // CON / DIS