diff options
author | irungentoo <irungentoo@gmail.com> | 2014-03-24 20:54:04 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-03-24 20:54:04 -0400 |
commit | 90d7eb4ff3ac3d0f03396225422d41f8cd3fc46c (patch) | |
tree | ff0605e49e0e7bb6ce4c715e46895b5ea8333cdf /toxcore/TCP_server.h | |
parent | 07078f731fea8c781e9822888268e48f18060ca0 (diff) |
A bit more work on TCP server.
I'm going to start working more diligently on this tommorow, the last
week hasn't really been productive.
Diffstat (limited to 'toxcore/TCP_server.h')
-rw-r--r-- | toxcore/TCP_server.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/toxcore/TCP_server.h b/toxcore/TCP_server.h index 3d2dfff7..22a992de 100644 --- a/toxcore/TCP_server.h +++ b/toxcore/TCP_server.h | |||
@@ -60,6 +60,8 @@ typedef struct TCP_Secure_Connection { | |||
60 | uint8_t shared_key[crypto_box_BEFORENMBYTES]; | 60 | uint8_t shared_key[crypto_box_BEFORENMBYTES]; |
61 | uint16_t next_packet_length; | 61 | uint16_t next_packet_length; |
62 | struct { | 62 | struct { |
63 | uint8_t status; /* 0 if not used, 1 if other is offline, 2 if other is online. */ | ||
64 | uint8_t public_key[crypto_box_PUBLICKEYBYTES]; | ||
63 | uint32_t index; | 65 | uint32_t index; |
64 | uint8_t other_id; | 66 | uint8_t other_id; |
65 | } connections[NUM_CLIENT_CONNECTIONS]; | 67 | } connections[NUM_CLIENT_CONNECTIONS]; |