diff options
author | iphydf <iphydf@users.noreply.github.com> | 2017-12-29 00:29:14 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2017-12-29 00:32:18 +0000 |
commit | 2c8fb05f6e1631403053ef8648d5860e0ec15cc3 (patch) | |
tree | 82dd81e89f1785126067c38ffedb7060d1835aef /toxcore/network.c | |
parent | f2b6090eca42f4a364ef7517c5eec6d472e9b5f6 (diff) |
Remove deprecated ToxDNS
Based on #331.
Fixes #42.
Diffstat (limited to 'toxcore/network.c')
-rw-r--r-- | toxcore/network.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/toxcore/network.c b/toxcore/network.c index 5c43bf57..7587826b 100644 --- a/toxcore/network.c +++ b/toxcore/network.c | |||
@@ -1411,20 +1411,6 @@ Socket net_socket(int domain, int type, int protocol) | |||
1411 | return socket(platform_domain, platform_type, platform_prot); | 1411 | return socket(platform_domain, platform_type, platform_prot); |
1412 | } | 1412 | } |
1413 | 1413 | ||
1414 | /* TODO: Remove, when tox DNS support will be removed. | ||
1415 | * Used only by dns3_test.c | ||
1416 | */ | ||
1417 | size_t net_sendto_ip4(Socket sock, const char *buf, size_t n, IP_Port ip_port) | ||
1418 | { | ||
1419 | struct sockaddr_in target; | ||
1420 | size_t addrsize = sizeof(target); | ||
1421 | target.sin_family = make_family(ip_port.ip.family); | ||
1422 | target.sin_port = net_htons(ip_port.port); | ||
1423 | fill_addr4(ip_port.ip.ip4, &target.sin_addr); | ||
1424 | |||
1425 | return (size_t)sendto(sock, buf, n, 0, (struct sockaddr *)&target, addrsize); | ||
1426 | } | ||
1427 | |||
1428 | uint32_t net_htonl(uint32_t hostlong) | 1414 | uint32_t net_htonl(uint32_t hostlong) |
1429 | { | 1415 | { |
1430 | return htonl(hostlong); | 1416 | return htonl(hostlong); |