aboutsummaryrefslogtreecommitdiff
path: root/protocol.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocol.h')
-rw-r--r--protocol.h3
1 files changed, 3 insertions, 0 deletions
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);