loudmouth/lm-socket.c
changeset 292 bb7269466be2
parent 291 cebf76f7f0e9
child 298 71aaed5a9c34
--- a/loudmouth/lm-socket.c	Mon Oct 29 16:59:36 2007 +0100
+++ b/loudmouth/lm-socket.c	Mon Oct 29 17:02:16 2007 +0100
@@ -1119,3 +1119,13 @@
 	}
 }
 
+gboolean
+lm_socket_set_keepalive (LmSocket *socket, int delay)
+{
+#ifdef USE_TCP_KEEPALIVES
+	return _lm_sock_set_keepalive (socket->fd, delay);
+#else
+	return FALSE;
+#endif /* USE_TCP_KEEPALIVES */
+}
+