diff options
author | irungentoo <irungentoo@gmail.com> | 2014-05-14 17:15:43 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-05-14 17:15:43 -0400 |
commit | c5559e192dc0a9afe76b3058cb1be756bc787f37 (patch) | |
tree | 40a0ed52a250fcb52253f9c5ec9b9d137e95ed7a /toxcore/TCP_server.h | |
parent | 0b2c44a708a7559cd7e7332747a851d18ad1e322 (diff) |
Added OOB packets to the TCP client and server.
Diffstat (limited to 'toxcore/TCP_server.h')
-rw-r--r-- | toxcore/TCP_server.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/toxcore/TCP_server.h b/toxcore/TCP_server.h index 2a6b8276..136231d0 100644 --- a/toxcore/TCP_server.h +++ b/toxcore/TCP_server.h | |||
@@ -39,6 +39,7 @@ | |||
39 | #define TCP_HANDSHAKE_PLAIN_SIZE (crypto_box_PUBLICKEYBYTES + crypto_box_NONCEBYTES) | 39 | #define TCP_HANDSHAKE_PLAIN_SIZE (crypto_box_PUBLICKEYBYTES + crypto_box_NONCEBYTES) |
40 | #define TCP_SERVER_HANDSHAKE_SIZE (crypto_box_NONCEBYTES + TCP_HANDSHAKE_PLAIN_SIZE + crypto_box_MACBYTES) | 40 | #define TCP_SERVER_HANDSHAKE_SIZE (crypto_box_NONCEBYTES + TCP_HANDSHAKE_PLAIN_SIZE + crypto_box_MACBYTES) |
41 | #define TCP_CLIENT_HANDSHAKE_SIZE (crypto_box_PUBLICKEYBYTES + TCP_SERVER_HANDSHAKE_SIZE) | 41 | #define TCP_CLIENT_HANDSHAKE_SIZE (crypto_box_PUBLICKEYBYTES + TCP_SERVER_HANDSHAKE_SIZE) |
42 | #define TCP_MAX_OOB_DATA_LENGTH 1024 | ||
42 | 43 | ||
43 | #define NUM_RESERVED_PORTS 16 | 44 | #define NUM_RESERVED_PORTS 16 |
44 | #define NUM_CLIENT_CONNECTIONS (256 - NUM_RESERVED_PORTS) | 45 | #define NUM_CLIENT_CONNECTIONS (256 - NUM_RESERVED_PORTS) |
@@ -49,6 +50,8 @@ | |||
49 | #define TCP_PACKET_DISCONNECT_NOTIFICATION 3 | 50 | #define TCP_PACKET_DISCONNECT_NOTIFICATION 3 |
50 | #define TCP_PACKET_PING 4 | 51 | #define TCP_PACKET_PING 4 |
51 | #define TCP_PACKET_PONG 5 | 52 | #define TCP_PACKET_PONG 5 |
53 | #define TCP_PACKET_OOB_SEND 6 | ||
54 | #define TCP_PACKET_OOB_RECV 7 | ||
52 | #define TCP_PACKET_ONION_REQUEST 8 | 55 | #define TCP_PACKET_ONION_REQUEST 8 |
53 | #define TCP_PACKET_ONION_RESPONSE 9 | 56 | #define TCP_PACKET_ONION_RESPONSE 9 |
54 | 57 | ||