summaryrefslogtreecommitdiff
path: root/toxcore/network.h
diff options
context:
space:
mode:
authorDiadlo <polsha3@gmail.com>2017-08-05 11:10:43 +0300
committerDiadlo <polsha3@gmail.com>2017-08-27 16:02:58 +0300
commit020e77fbdf6b40b714bd97c34e3cd0b0dd036be2 (patch)
tree3cb14469386f903d3f8405920f5a579946b6f50b /toxcore/network.h
parentf084f2c621b75a146ccefecbffa9be5f514297e3 (diff)
Remove 'in_addr' and 'addrinfo' mention from network.h
Diffstat (limited to 'toxcore/network.h')
-rw-r--r--toxcore/network.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/toxcore/network.h b/toxcore/network.h
index f57c6897..3c98c168 100644
--- a/toxcore/network.h
+++ b/toxcore/network.h
@@ -63,10 +63,6 @@
63 63
64#endif 64#endif
65 65
66struct in_addr;
67struct in6_addr;
68struct addrinfo;
69
70typedef short Family; 66typedef short Family;
71 67
72typedef int Socket; 68typedef int Socket;
@@ -165,14 +161,6 @@ typedef struct {
165} 161}
166IP_Port; 162IP_Port;
167 163
168/* Convert in_addr to IP */
169void get_ip4(IP4 *ip, const struct in_addr *addr);
170void get_ip6(IP6 *ip, const struct in6_addr *addr);
171
172/* Conevrt IP to in_addr */
173void fill_addr4(IP4 ip, struct in_addr *addr);
174void fill_addr6(IP6 ip, struct in6_addr *addr);
175
176/* Convert values between host and network byte order. 164/* Convert values between host and network byte order.
177 */ 165 */
178uint32_t net_htonl(uint32_t hostlong); 166uint32_t net_htonl(uint32_t hostlong);