summaryrefslogtreecommitdiff
path: root/toxcore/network.h
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2015-04-13 08:32:33 -0400
committerirungentoo <irungentoo@gmail.com>2015-04-13 08:32:33 -0400
commitd05e39274ca4ce27ddb02c0ec15c0ed1c46000a3 (patch)
tree9700b16370a1357fc7745ab7deb39686c830fa92 /toxcore/network.h
parent42d8be4ce91532d2af1ccb596c2de4054eba34b3 (diff)
Make tox_new return TOX_ERR_NEW_PORT_ALLOC for all socket related errors.
Diffstat (limited to 'toxcore/network.h')
-rw-r--r--toxcore/network.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/network.h b/toxcore/network.h
index b06c0f6a..56494562 100644
--- a/toxcore/network.h
+++ b/toxcore/network.h
@@ -370,7 +370,7 @@ void networking_poll(Networking_Core *net);
370 * return Networking_Core object if no problems 370 * return Networking_Core object if no problems
371 * return NULL if there are problems. 371 * return NULL if there are problems.
372 * 372 *
373 * If error is non NULL it is set to 0 if no issues, 1 if bind failed, 2 if other. 373 * If error is non NULL it is set to 0 if no issues, 1 if socket related error, 2 if other.
374 */ 374 */
375Networking_Core *new_networking(IP ip, uint16_t port); 375Networking_Core *new_networking(IP ip, uint16_t port);
376Networking_Core *new_networking_ex(IP ip, uint16_t port_from, uint16_t port_to, unsigned int *error); 376Networking_Core *new_networking_ex(IP ip, uint16_t port_from, uint16_t port_to, unsigned int *error);