summaryrefslogtreecommitdiff
path: root/protocols/Tox/libtox/src/toxcore/network.c
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2017-12-30 00:42:35 +0300
committeraunsane <aunsane@gmail.com>2017-12-30 00:42:49 +0300
commitcc65f8dbead036bfdd29d397195f9152839d4919 (patch)
tree8e8188f7db65f8a538d5e423e1d0b3491706efc4 /protocols/Tox/libtox/src/toxcore/network.c
parent81cd378b0a0ee5e26d58c085a3b10bd89a7244c2 (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.c14
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);