Common datatypes
Fixed name conflicts
+ message type changed from enum to simplier #define
+ structure for message as defined by protocol
new functions for sending/receiving whole protocol message