[gssdp/wip/ipv6: 39/43] WIP
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gssdp/wip/ipv6: 39/43] WIP
- Date: Mon, 29 Oct 2018 21:54:55 +0000 (UTC)
commit 56b8601922c26308db9e8b25f0c48616549bd4bf
Author: Jens Georg <mail jensge org>
Date: Thu Feb 18 10:06:16 2016 +0100
WIP
libgssdp/gssdp-socket-source.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/libgssdp/gssdp-socket-source.c b/libgssdp/gssdp-socket-source.c
index 98f7b21..c677ea4 100644
--- a/libgssdp/gssdp-socket-source.c
+++ b/libgssdp/gssdp-socket-source.c
@@ -212,7 +212,7 @@ gssdp_socket_source_do_init (GInitable *initable,
}
/* Enable broadcasting */
-/* g_socket_set_broadcast (self->priv->socket, TRUE);
+ g_socket_set_broadcast (self->priv->socket, TRUE);
if (!gssdp_socket_enable_info (self->priv->socket,
TRUE,
@@ -223,13 +223,13 @@ gssdp_socket_source_do_init (GInitable *initable,
goto error;
}
-*/
+
/* TTL */
if (!self->priv->ttl)
/* UDA/1.0 says 4, UDA/1.1 says 2 */
self->priv->ttl = 4;
- //g_socket_set_multicast_ttl (self->priv->socket, self->priv->ttl);
+ g_socket_set_multicast_ttl (self->priv->socket, self->priv->ttl);
/* Set up additional things according to the type of socket desired */
@@ -285,7 +285,7 @@ gssdp_socket_source_do_init (GInitable *initable,
* there, also we nees SO_REUSEPORT on OpenBSD. This is a nop
* everywhere else.
*/
-/* if (!gssdp_socket_reuse_address (self->priv->socket,
+ if (!gssdp_socket_reuse_address (self->priv->socket,
TRUE,
&inner_error)) {
g_propagate_prefixed_error (
@@ -294,7 +294,7 @@ gssdp_socket_source_do_init (GInitable *initable,
"Failed to enable reuse");
goto error;
- } */
+ }
/* Bind to requested port and address */
if (!g_socket_bind (self->priv->socket,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]