From b19a9e54643eceaa52e71c0f38fa2ecae5a6809e Mon Sep 17 00:00:00 2001 From: Diadlo Date: Sat, 7 Jan 2017 11:28:53 +0300 Subject: Add part of platform-independent network API implementation socket -> net_socket htons -> net_htons htonl -> net_htonl connect -> net_connect sendto -> net_sendto_ip4 getaddrinfo -> net_getipport sa_family_t -> Family --- other/bootstrap_daemon/src/tox-bootstrapd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'other/bootstrap_daemon/src/tox-bootstrapd.c') diff --git a/other/bootstrap_daemon/src/tox-bootstrapd.c b/other/bootstrap_daemon/src/tox-bootstrapd.c index 1c4b11b6..9f67458b 100644 --- a/other/bootstrap_daemon/src/tox-bootstrapd.c +++ b/other/bootstrap_daemon/src/tox-bootstrapd.c @@ -312,7 +312,7 @@ int main(int argc, char *argv[]) print_public_key(dht->self_public_key); uint64_t last_LANdiscovery = 0; - const uint16_t htons_port = htons(port); + const uint16_t net_htons_port = net_htons(port); int waiting_for_dht_connection = 1; @@ -325,7 +325,7 @@ int main(int argc, char *argv[]) do_DHT(dht); if (enable_lan_discovery && is_timeout(last_LANdiscovery, LAN_DISCOVERY_INTERVAL)) { - send_LANdiscovery(htons_port, dht); + send_LANdiscovery(net_htons_port, dht); last_LANdiscovery = unix_time(); } -- cgit v1.2.3