diff options
Diffstat (limited to 'protocol.h')
-rw-r--r-- | protocol.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -11,6 +11,8 @@ #define STATIONSHUTDOWN 7 #define NEWSTATION 8 +#define TCP_TIMEOUT 100000 // 100ms in microseconds +#define MAX_PACKET_SIZE 512 // client to server messages (commands) @@ -63,3 +65,4 @@ struct NewStation { int send_all(int sock, char *buf, int *len); int recv_all(int sock, char *buf, int *len); +void *get_in_addr(struct sockaddr *sa); |