diff options
author | aunsane <aunsane@gmail.com> | 2017-12-30 00:42:35 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2017-12-30 00:42:49 +0300 |
commit | cc65f8dbead036bfdd29d397195f9152839d4919 (patch) | |
tree | 8e8188f7db65f8a538d5e423e1d0b3491706efc4 /protocols/Tox/libtox/src/toxcore/network.c | |
parent | 81cd378b0a0ee5e26d58c085a3b10bd89a7244c2 (diff) |
Tox: project cleanup
- updated libtox
- removed deprecated toxDNS support
- removed unused references
Diffstat (limited to 'protocols/Tox/libtox/src/toxcore/network.c')
-rw-r--r-- | protocols/Tox/libtox/src/toxcore/network.c | 14 |
1 files changed, 0 insertions, 14 deletions
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); |