diff options
author | irungentoo <irungentoo@gmail.com> | 2015-04-13 08:32:33 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2015-04-13 08:32:33 -0400 |
commit | d05e39274ca4ce27ddb02c0ec15c0ed1c46000a3 (patch) | |
tree | 9700b16370a1357fc7745ab7deb39686c830fa92 /toxcore/network.h | |
parent | 42d8be4ce91532d2af1ccb596c2de4054eba34b3 (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.h | 2 |
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 | */ |
375 | Networking_Core *new_networking(IP ip, uint16_t port); | 375 | Networking_Core *new_networking(IP ip, uint16_t port); |
376 | Networking_Core *new_networking_ex(IP ip, uint16_t port_from, uint16_t port_to, unsigned int *error); | 376 | Networking_Core *new_networking_ex(IP ip, uint16_t port_from, uint16_t port_to, unsigned int *error); |