From 0b13936ce8498735e245531c222c035f41fd5e0f Mon Sep 17 00:00:00 2001 From: iphydf Date: Mon, 15 Jan 2018 00:48:35 +0000 Subject: Use apidsl to generate LAN_discovery.h. --- other/DHT_bootstrap.c | 4 ++-- other/bootstrap_daemon/src/tox-bootstrapd.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'other') diff --git a/other/DHT_bootstrap.c b/other/DHT_bootstrap.c index 0e95805d..5eae46b9 100644 --- a/other/DHT_bootstrap.c +++ b/other/DHT_bootstrap.c @@ -181,7 +181,7 @@ int main(int argc, char *argv[]) int is_waiting_for_dht_connection = 1; uint64_t last_LANdiscovery = 0; - LANdiscovery_init(dht); + lan_discovery_init(dht); while (1) { if (is_waiting_for_dht_connection && DHT_isconnected(dht)) { @@ -192,7 +192,7 @@ int main(int argc, char *argv[]) do_DHT(dht); if (is_timeout(last_LANdiscovery, is_waiting_for_dht_connection ? 5 : LAN_DISCOVERY_INTERVAL)) { - send_LANdiscovery(net_htons(PORT), dht); + lan_discovery_send(net_htons(PORT), dht); last_LANdiscovery = unix_time(); } diff --git a/other/bootstrap_daemon/src/tox-bootstrapd.c b/other/bootstrap_daemon/src/tox-bootstrapd.c index c3af4a10..c6780fa3 100644 --- a/other/bootstrap_daemon/src/tox-bootstrapd.c +++ b/other/bootstrap_daemon/src/tox-bootstrapd.c @@ -316,7 +316,7 @@ int main(int argc, char *argv[]) int waiting_for_dht_connection = 1; if (enable_lan_discovery) { - LANdiscovery_init(dht); + lan_discovery_init(dht); log_write(LOG_LEVEL_INFO, "Initialized LAN discovery successfully.\n"); } @@ -324,7 +324,7 @@ int main(int argc, char *argv[]) do_DHT(dht); if (enable_lan_discovery && is_timeout(last_LANdiscovery, LAN_DISCOVERY_INTERVAL)) { - send_LANdiscovery(net_htons_port, dht); + lan_discovery_send(net_htons_port, dht); last_LANdiscovery = unix_time(); } -- cgit v1.2.3