aboutsummaryrefslogtreecommitdiff
path: root/protocol.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocol.h')
-rw-r--r--protocol.h16
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));