diff options
author | sotech117 <michael_foiani@brown.edu> | 2023-09-24 07:45:27 +0000 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2023-09-24 07:45:27 +0000 |
commit | 538d22688c4ae07d8ee9b9d1ec2ebbe80adddf47 (patch) | |
tree | 8f5060a14231f3c0d9c63a27fac79dc242b9a297 /protocol.h | |
parent | 2acabfaf7308be7517d948743cc6ab9660566327 (diff) |
more extra credit :)
Diffstat (limited to 'protocol.h')
-rw-r--r-- | protocol.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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); |