From 31e7f3a92f903f0e58c29af1f601111be7d5e9c3 Mon Sep 17 00:00:00 2001 From: vysheng Date: Fri, 7 Mar 2014 23:41:59 +0400 Subject: [PATCH] deleted unused code --- mtproto-common.h | 112 ----------------------------------------------- 1 file changed, 112 deletions(-) diff --git a/mtproto-common.h b/mtproto-common.h index 011aed3..340af62 100644 --- a/mtproto-common.h +++ b/mtproto-common.h @@ -104,118 +104,6 @@ struct encrypted_message { int message[MAX_MESSAGE_INTS]; }; -struct worker_descr { - int addr; - int port; - int pid; - int start_time; - int id; -}; - -struct rpc_ready_packet { - int len; - int seq_num; - int type; - struct worker_descr worker; - int worker_ready_cnt; - int crc32; -}; - - -struct front_descr { - int addr; - int port; - int pid; - int start_time; - int id; -}; - -struct rpc_front_packet { - int len; - int seq_num; - int type; - struct front_descr front; - long long hash_mult; - int rem, mod; - int crc32; -}; - -struct middle_descr { - int addr; - int port; - int pid; - int start_time; - int id; -}; - -struct rpc_front_ack { - int len; - int seq_num; - int type; - struct middle_descr middle; - int crc32; -}; - -struct rpc_front_err { - int len; - int seq_num; - int type; - int errcode; - struct middle_descr middle; - long long hash_mult; - int rem, mod; - int crc32; -}; - -struct rpc_proxy_req { - int len; - int seq_num; - int type; - int flags; - long long ext_conn_id; - unsigned char remote_ipv6[16]; - int remote_port; - unsigned char our_ipv6[16]; - int our_port; - int data[]; -}; - -#define PROXY_HDR(__x) ((struct rpc_proxy_req *)((__x) - offsetof(struct rpc_proxy_req, data))) - -struct rpc_proxy_ans { - int len; - int seq_num; - int type; - int flags; // +16 = small error packet, +8 = flush immediately - long long ext_conn_id; - int data[]; -}; - -struct rpc_close_conn { - int len; - int seq_num; - int type; - long long ext_conn_id; - int crc32; -}; - -struct rpc_close_ext { - int len; - int seq_num; - int type; - long long ext_conn_id; - int crc32; -}; - -struct rpc_simple_ack { - int len; - int seq_num; - int type; - long long ext_conn_id; - int confirm_key; - int crc32; -}; - #pragma pack(pop) BN_CTX *BN_ctx;