From cc65f8dbead036bfdd29d397195f9152839d4919 Mon Sep 17 00:00:00 2001 From: aunsane Date: Sat, 30 Dec 2017 00:42:35 +0300 Subject: Tox: project cleanup - updated libtox - removed deprecated toxDNS support - removed unused references --- protocols/Tox/libtox/src/toxcore/network.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'protocols/Tox/libtox/src/toxcore/network.c') diff --git a/protocols/Tox/libtox/src/toxcore/network.c b/protocols/Tox/libtox/src/toxcore/network.c index 5c43bf5779..7587826b51 100644 --- a/protocols/Tox/libtox/src/toxcore/network.c +++ b/protocols/Tox/libtox/src/toxcore/network.c @@ -1411,20 +1411,6 @@ Socket net_socket(int domain, int type, int protocol) return socket(platform_domain, platform_type, platform_prot); } -/* TODO: Remove, when tox DNS support will be removed. - * Used only by dns3_test.c - */ -size_t net_sendto_ip4(Socket sock, const char *buf, size_t n, IP_Port ip_port) -{ - struct sockaddr_in target; - size_t addrsize = sizeof(target); - target.sin_family = make_family(ip_port.ip.family); - target.sin_port = net_htons(ip_port.port); - fill_addr4(ip_port.ip.ip4, &target.sin_addr); - - return (size_t)sendto(sock, buf, n, 0, (struct sockaddr *)&target, addrsize); -} - uint32_t net_htonl(uint32_t hostlong) { return htonl(hostlong); -- cgit v1.2.3