aboutsummaryrefslogtreecommitdiffhomepage
path: root/sacn.h
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2018-03-02 03:08:32 +0100
committercbdev <cb@cbcdn.com>2018-03-02 03:08:32 +0100
commitbe5df1c4e639ca6a7cd70a3122039a1de4588e28 (patch)
tree4259066960708f18b6b053fff9138c2c32b98b30 /sacn.h
parentf307934129e4f5310cbd89ec739d47b0e031951f (diff)
downloadmidimonster-be5df1c4e639ca6a7cd70a3122039a1de4588e28.tar.gz
midimonster-be5df1c4e639ca6a7cd70a3122039a1de4588e28.tar.bz2
midimonster-be5df1c4e639ca6a7cd70a3122039a1de4588e28.zip
Implement keepalive frames
Diffstat (limited to 'sacn.h')
-rw-r--r--sacn.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sacn.h b/sacn.h
index 74549ba..e7106f7 100644
--- a/sacn.h
+++ b/sacn.h
@@ -13,6 +13,7 @@ static int sacn_shutdown();
#define SACN_PORT "5568"
#define SACN_RECV_BUF 8192
+#define SACN_KEEPALIVE_INTERVAL 2000
#define SACN_DISCOVERY_TIMEOUT 9000
#define SACN_PDU_MAGIC "ASC-E1.17\0\0\0"
@@ -59,6 +60,7 @@ typedef struct /*_sacn_socket*/ {
uint8_t flags;
size_t universes;
uint16_t* universe;
+ uint64_t* last_frame;
} sacn_fd;
#pragma pack(push, 1)