From 6a2c567b85be275bb431c09952a88ea4cdf210aa Mon Sep 17 00:00:00 2001 From: sotech117 Date: Mon, 25 Sep 2023 22:21:42 -0400 Subject: massive restrcuting of code for readability --- protocol.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'protocol.h') diff --git a/protocol.h b/protocol.h index fc5b536..7970e18 100644 --- a/protocol.h +++ b/protocol.h @@ -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); -- cgit v1.2.3-70-g09d2