aboutsummaryrefslogtreecommitdiff
path: root/protocol.h
blob: 0cdc998debf202d6c7ec37b1a8d605b9d698de3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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));