diff options
author | Diadlo <polsha3@gmail.com> | 2017-01-07 11:28:53 +0300 |
---|---|---|
committer | Diadlo <polsha3@gmail.com> | 2017-02-26 23:16:16 +0300 |
commit | b19a9e54643eceaa52e71c0f38fa2ecae5a6809e (patch) | |
tree | 4c6fff0a086988ab21636e88dbf65c2e40a76a67 /auto_tests/dht_test.c | |
parent | b2d04eae9d9b76523b877a9e5efd5989f83b143d (diff) |
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
Diffstat (limited to 'auto_tests/dht_test.c')
-rw-r--r-- | auto_tests/dht_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/auto_tests/dht_test.c b/auto_tests/dht_test.c index 633e7002..479b0eb8 100644 --- a/auto_tests/dht_test.c +++ b/auto_tests/dht_test.c | |||
@@ -623,7 +623,7 @@ loop_top: | |||
623 | IP_Port ip_port; | 623 | IP_Port ip_port; |
624 | ip_init(&ip_port.ip, 1); | 624 | ip_init(&ip_port.ip, 1); |
625 | ip_port.ip.ip6.uint8[15] = 1; | 625 | ip_port.ip.ip6.uint8[15] = 1; |
626 | ip_port.port = htons(DHT_DEFAULT_PORT + i); | 626 | ip_port.port = net_htons(DHT_DEFAULT_PORT + i); |
627 | DHT_bootstrap(dhts[(i - 1) % NUM_DHT], ip_port, dhts[i]->self_public_key); | 627 | DHT_bootstrap(dhts[(i - 1) % NUM_DHT], ip_port, dhts[i]->self_public_key); |
628 | } | 628 | } |
629 | 629 | ||