aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends/rtpmidi.h
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2019-12-28 14:48:22 +0100
committercbdev <cb@cbcdn.com>2019-12-28 14:48:22 +0100
commit9cb41bd9e07a80885fafe30c9d230615f8b5cc67 (patch)
tree909b526397f9a430678b65e0fa8bfcafe6c73891 /backends/rtpmidi.h
parent4275aa8d0209768e45b43ef7e3aefcb808001926 (diff)
downloadmidimonster-9cb41bd9e07a80885fafe30c9d230615f8b5cc67.tar.gz
midimonster-9cb41bd9e07a80885fafe30c9d230615f8b5cc67.tar.bz2
midimonster-9cb41bd9e07a80885fafe30c9d230615f8b5cc67.zip
Extend peer handling
Diffstat (limited to 'backends/rtpmidi.h')
-rw-r--r--backends/rtpmidi.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/backends/rtpmidi.h b/backends/rtpmidi.h
index a9effd8..db6237b 100644
--- a/backends/rtpmidi.h
+++ b/backends/rtpmidi.h
@@ -20,6 +20,7 @@ static int rtpmidi_shutdown(size_t n, instance** inst);
#define RTPMIDI_HEADER_TYPE 0x61
#define RTPMIDI_GET_TYPE(a) ((a) & 0x7F)
#define RTPMIDI_DEFAULT_NAME "MIDIMonster"
+#define RTPMIDI_SERVICE_INTERVAL 1000
enum /*_rtpmidi_channel_type*/ {
none = 0,
@@ -50,7 +51,9 @@ typedef struct /*_rtpmidi_peer*/ {
struct sockaddr_storage dest;
socklen_t dest_len;
//uint32_t ssrc;
- uint8_t inactive;
+ uint8_t active; //marked for reuse
+ uint8_t learned; //learned / configured peer
+ uint8_t connected; //currently in active session
} rtpmidi_peer;
typedef struct /*_rtmidi_instance_data*/ {