diff options
author | Christian Pointner <equinox@spreadspace.org> | 2014-09-29 00:58:55 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2014-09-29 00:58:55 +0200 |
commit | 1f3bee08f3a63406464fa18b346bb6d95e8de68d (patch) | |
tree | b8fa5d59bd8c333ebd4f35699e54dfc1af6f9b84 /src/udp.c | |
parent | recording works now for receiver as well (diff) |
initial support for keepalives
Diffstat (limited to 'src/udp.c')
-rw-r--r-- | src/udp.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -230,13 +230,22 @@ gboolean attach_udpsinks(struct udp_sinks *sinks) return TRUE; } +static gboolean send_keepalives(gpointer user_data) +{ + log_printf(WARNING, "sending keep alives is not yet supporet!"); + return TRUE; +} gboolean attach_udpsources(struct udp_sources *sources) { if(!sources) return FALSE; - log_printf(WARNING, "udp source keep alive messages are not implemented yet!"); + if(sources->keepalive_interval_ > 0) { + send_keepalives(sources); + if(!g_timeout_add_seconds(sources->keepalive_interval_, send_keepalives, sources)) + return FALSE; + } return TRUE; } |