diff options
author | sotech117 <michael_foiani@brown.edu> | 2023-09-14 19:02:36 -0400 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2023-09-14 19:02:36 -0400 |
commit | bbfbcc6c936b16568d96619f02f8bb081c190b2a (patch) | |
tree | 4b2cd1495a2de14904cb6587263620655c954f6e /protocol.h | |
parent | 053ef4fa8eca86fc3b8a5b81bdd0abe599413c65 (diff) |
finish warmup, hopefully
Diffstat (limited to 'protocol.h')
-rw-r--r-- | protocol.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/protocol.h b/protocol.h new file mode 100644 index 0000000..0cdc998 --- /dev/null +++ b/protocol.h @@ -0,0 +1,16 @@ +#include <stdint.h> // Provides uint8_t, int8_t, etc. + +struct snowcast_message { + uint8_t type; + uint16_t number; +} __attribute__((packed)); + +struct Welcome { + uint8_t replyType; + uint16_t numStations; +} __attribute__((packed)); + +struct Hello { + uint8_t commandType; + uint16_t udpPort; +} __attribute__((packed)); |