diff options
Diffstat (limited to 'toxcore/TCP_client.h')
-rw-r--r-- | toxcore/TCP_client.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/toxcore/TCP_client.h b/toxcore/TCP_client.h index 277378b9..768ef9d2 100644 --- a/toxcore/TCP_client.h +++ b/toxcore/TCP_client.h | |||
@@ -105,6 +105,12 @@ void routing_response_handler(TCP_Client_Connection *con, int (*response_callbac | |||
105 | void routing_status_handler(TCP_Client_Connection *con, int (*status_callback)(void *object, uint32_t number, | 105 | void routing_status_handler(TCP_Client_Connection *con, int (*status_callback)(void *object, uint32_t number, |
106 | uint8_t connection_id, uint8_t status), void *object); | 106 | uint8_t connection_id, uint8_t status), void *object); |
107 | 107 | ||
108 | /* return 1 on success. | ||
109 | * return 0 if could not send packet. | ||
110 | * return -1 on failure (connection must be killed). | ||
111 | */ | ||
112 | int send_disconnect_request(TCP_Client_Connection *con, uint8_t con_id); | ||
113 | |||
108 | /* Set the number that will be used as an argument in the callbacks related to con_id. | 114 | /* Set the number that will be used as an argument in the callbacks related to con_id. |
109 | * | 115 | * |
110 | * When not set by this function, the number is ~0. | 116 | * When not set by this function, the number is ~0. |