From 538d22688c4ae07d8ee9b9d1ec2ebbe80adddf47 Mon Sep 17 00:00:00 2001 From: sotech117 Date: Sun, 24 Sep 2023 07:45:27 +0000 Subject: more extra credit :) --- protocol.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'protocol.h') 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); -- cgit v1.2.3-70-g09d2