summaryrefslogtreecommitdiff
path: root/toxcore/network.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/network.h')
-rw-r--r--toxcore/network.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/network.h b/toxcore/network.h
index e6d7bbef..92e5bbcf 100644
--- a/toxcore/network.h
+++ b/toxcore/network.h
@@ -391,18 +391,18 @@ int net_connect(Socket sock, IP_Port ip_port);
391 * 391 *
392 * return number of elements in res array. 392 * return number of elements in res array.
393 */ 393 */
394int32_t net_getipport(const char* node, IP_Port** res, int type); 394int32_t net_getipport(const char *node, IP_Port **res, int type);
395 395
396/* Deallocates memory allocated by net_getipport 396/* Deallocates memory allocated by net_getipport
397 */ 397 */
398void net_freeipport(IP_Port* ip_ports); 398void net_freeipport(IP_Port *ip_ports);
399 399
400/* return 1 on success 400/* return 1 on success
401 * return 0 on failure 401 * return 0 on failure
402 */ 402 */
403int bind_to_port(Socket sock, int family, uint16_t port); 403int bind_to_port(Socket sock, int family, uint16_t port);
404 404
405size_t net_sendto_ip4(Socket sock, const char* buf, size_t n, IP_Port ip_port); 405size_t net_sendto_ip4(Socket sock, const char *buf, size_t n, IP_Port ip_port);
406 406
407/* Initialize networking. 407/* Initialize networking.
408 * bind to ip and port. 408 * bind to ip and port.