diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-03-01 14:32:34 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-03-01 14:32:34 +0000 |
commit | 8ea46cc3c928bd5f74859dc74f305c94b687aad2 (patch) | |
tree | 8a18d4d5a51a7ad7572aa7b5e2386d14e1d1c6b1 /src/transport/plugin_transport_udp_broadcasting.c | |
parent | 3c8d61656ddd2f9fcfd86345618086223dde363b (diff) | |
download | gnunet-8ea46cc3c928bd5f74859dc74f305c94b687aad2.tar.gz gnunet-8ea46cc3c928bd5f74859dc74f305c94b687aad2.zip |
-simplifying event loop for UDP, separting v4/v6 for better performance (in theory at least)
Diffstat (limited to 'src/transport/plugin_transport_udp_broadcasting.c')
-rw-r--r-- | src/transport/plugin_transport_udp_broadcasting.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_udp_broadcasting.c b/src/transport/plugin_transport_udp_broadcasting.c index e7b7cdc23..ea8797f29 100644 --- a/src/transport/plugin_transport_udp_broadcasting.c +++ b/src/transport/plugin_transport_udp_broadcasting.c | |||
@@ -527,6 +527,13 @@ iface_proc (void *cls, | |||
527 | } | 527 | } |
528 | 528 | ||
529 | 529 | ||
530 | /** | ||
531 | * Setup broadcasting subsystem. | ||
532 | * | ||
533 | * @param plugin | ||
534 | * @param server_addrv6 | ||
535 | * @param server_addrv4 | ||
536 | */ | ||
530 | void | 537 | void |
531 | setup_broadcast (struct Plugin *plugin, | 538 | setup_broadcast (struct Plugin *plugin, |
532 | struct sockaddr_in6 *server_addrv6, | 539 | struct sockaddr_in6 *server_addrv6, |
@@ -577,6 +584,11 @@ setup_broadcast (struct Plugin *plugin, | |||
577 | } | 584 | } |
578 | 585 | ||
579 | 586 | ||
587 | /** | ||
588 | * Stop broadcasting subsystem. | ||
589 | * | ||
590 | * @param plugin | ||
591 | */ | ||
580 | void | 592 | void |
581 | stop_broadcast (struct Plugin *plugin) | 593 | stop_broadcast (struct Plugin *plugin) |
582 | { | 594 | { |