summaryrefslogtreecommitdiff
path: root/toxcore/Messenger.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/Messenger.h')
-rw-r--r--toxcore/Messenger.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/toxcore/Messenger.h b/toxcore/Messenger.h
index 8ab6b6ed..26704dd1 100644
--- a/toxcore/Messenger.h
+++ b/toxcore/Messenger.h
@@ -70,6 +70,7 @@ typedef struct {
70 uint8_t udp_disabled; 70 uint8_t udp_disabled;
71 TCP_Proxy_Info proxy_info; 71 TCP_Proxy_Info proxy_info;
72 uint16_t port_range[2]; 72 uint16_t port_range[2];
73 uint16_t tcp_server_port;
73} Messenger_Options; 74} Messenger_Options;
74 75
75 76
@@ -219,6 +220,7 @@ struct Messenger {
219 220
220 Friend_Connections *fr_c; 221 Friend_Connections *fr_c;
221 222
223 TCP_Server *tcp_server;
222 Friend_Requests fr; 224 Friend_Requests fr;
223 uint8_t name[MAX_NAME_LENGTH]; 225 uint8_t name[MAX_NAME_LENGTH];
224 uint16_t name_length; 226 uint16_t name_length;
@@ -727,6 +729,7 @@ int send_custom_lossless_packet(const Messenger *m, int32_t friendnumber, const
727enum { 729enum {
728 MESSENGER_ERROR_NONE, 730 MESSENGER_ERROR_NONE,
729 MESSENGER_ERROR_PORT, 731 MESSENGER_ERROR_PORT,
732 MESSENGER_ERROR_TCP_SERVER,
730 MESSENGER_ERROR_OTHER 733 MESSENGER_ERROR_OTHER
731}; 734};
732 735