29 #include <libplayercore/playercore.h> 32 #define PACKET_LEN 256 34 enum receive_result_e {
44 unsigned char packet[PACKET_LEN];
47 uint16_t CalcChkSum();
51 int Build(
unsigned char *data,
unsigned char datasize );
53 int Receive(
int fd, uint16_t wait = 30 );
57 if ( size != p.size)
return(
true);
59 if ( memcmp( packet, p.packet, size ) != 0 )
return (
true);
void Print()
Copyright (C) 2006 Videre Design Copyright (C) 2000 Brian Gerkey, Kasper Stoy, Richard Vaughan...
Definition: erratic/packet.cc:39
Definition: erratic/packet.h:41