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 /toxcore/friend_connection.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 'toxcore/friend_connection.c')
-rw-r--r-- | toxcore/friend_connection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/friend_connection.c b/toxcore/friend_connection.c index a63855af..0fbae406 100644 --- a/toxcore/friend_connection.c +++ b/toxcore/friend_connection.c | |||
@@ -841,7 +841,7 @@ Friend_Connections *new_friend_connections(Onion_Client *onion_c, bool local_dis | |||
841 | static void LANdiscovery(Friend_Connections *fr_c) | 841 | static void LANdiscovery(Friend_Connections *fr_c) |
842 | { | 842 | { |
843 | if (fr_c->last_LANdiscovery + LAN_DISCOVERY_INTERVAL < unix_time()) { | 843 | if (fr_c->last_LANdiscovery + LAN_DISCOVERY_INTERVAL < unix_time()) { |
844 | send_LANdiscovery(htons(TOX_PORT_DEFAULT), fr_c->dht); | 844 | send_LANdiscovery(net_htons(TOX_PORT_DEFAULT), fr_c->dht); |
845 | fr_c->last_LANdiscovery = unix_time(); | 845 | fr_c->last_LANdiscovery = unix_time(); |
846 | } | 846 | } |
847 | } | 847 | } |