diff options
Diffstat (limited to 'protocols/Telegram/src/t_network.h')
-rw-r--r-- | protocols/Telegram/src/t_network.h | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/protocols/Telegram/src/t_network.h b/protocols/Telegram/src/t_network.h deleted file mode 100644 index 3859f562e4..0000000000 --- a/protocols/Telegram/src/t_network.h +++ /dev/null @@ -1,48 +0,0 @@ -enum conn_state { - conn_none, - conn_connecting, - conn_ready, - conn_failed, - conn_stopped -};
-
-struct connection : public MZeroedObject
-{
- char *ip;
- int port;
- int flags;
- enum conn_state state;
- struct mtproto_methods *methods;
- struct tgl_state *TLS;
- struct tgl_session *session;
- struct tgl_dc *dc;
- void *extra;
- double last_receive_time;
- HANDLE hNetlibConn;
- HANDLE ping_timer;
- HANDLE in_fail_timer;
-
- struct connection_buffer *in_head; - struct connection_buffer *in_tail; - struct connection_buffer *out_head; - struct connection_buffer *out_tail;
-
- int in_bytes; - int out_bytes; - int packet_num; - int out_packet_num;
-
-
- HANDLE ping_ev, fail_ev, write_ev, read_ev;
-
- time_t last_connect_time;
-
-};
-
-struct connection_buffer { - unsigned char *start; - unsigned char *end; - unsigned char *rptr; - unsigned char *wptr; - struct connection_buffer *next; -};
\ No newline at end of file |