diff options
author | sotech117 <michael_foiani@brown.edu> | 2023-09-25 22:21:42 -0400 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2023-09-25 22:21:42 -0400 |
commit | 6a2c567b85be275bb431c09952a88ea4cdf210aa (patch) | |
tree | ff649ae093b3b8eb9931e3a2e4cf7bb3e5ce0bb7 /protocol.h | |
parent | 8c6ae1ecde9faa0af5dacaf7ecf0f9cf47b69159 (diff) |
massive restrcuting of code for readability
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); |