aboutsummaryrefslogtreecommitdiff
path: root/protocol.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocol.h')
-rw-r--r--protocol.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/protocol.h b/protocol.h
index 33ffb07..2b48ef4 100644
--- a/protocol.h
+++ b/protocol.h
@@ -39,6 +39,15 @@ struct StationInfo {
char *infoString;
} __attribute__((packed));
+struct StationShutdown {
+ uint8_t replyType; // 7
+} __attribute__((packed));
+
+struct NewStation {
+ uint8_t replyType; // 8
+ uint16_t stationNumber;
+} __attribute__((packed));
+
int send_all(int sock, char *buf, int *len);
int recv_all(int sock, char *buf, int *len);