summaryrefslogtreecommitdiff
path: root/toxcore/TCP_client.h
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-05-15 20:57:55 -0400
committerirungentoo <irungentoo@gmail.com>2014-05-15 20:57:55 -0400
commita5141679527b10de8cc6e0aa211873706abac149 (patch)
tree4f165634167a7c24ecc36d009467db33e670fece /toxcore/TCP_client.h
parent1e7164fcee879a4392ccb45c80607bd5b5c71352 (diff)
Exposed and tested disconnect notification TCP packets.
Diffstat (limited to 'toxcore/TCP_client.h')
-rw-r--r--toxcore/TCP_client.h6
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
105void routing_status_handler(TCP_Client_Connection *con, int (*status_callback)(void *object, uint32_t number, 105void 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 */
112int 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.