summaryrefslogtreecommitdiff
path: root/toxcore/network.h
diff options
context:
space:
mode:
authorDiadlo <polsha3@gmail.com>2017-03-04 09:02:26 +0300
committerDiadlo <polsha3@gmail.com>2017-03-04 15:32:00 +0300
commitc1e3358dcd144c83579287b34daba4ba5a7b22ff (patch)
tree3a0387181d58458983171a07c0bd0529aacfe643 /toxcore/network.h
parentf91af5c93a46b7290bfbcc83ef0bc94382a64938 (diff)
Fix formatting with astyle
Fix #494
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.