Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/majn/tgl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvvaltman <vvaltman@neon>2015-06-16 14:08:35 +0300
committervvaltman <vvaltman@neon>2015-06-16 14:08:35 +0300
commited9217f262714094068a724537fa15ac30130333 (patch)
tree50d2a692453357029d1a04046b1553849379dc03 /tgl-layout.h
parent41121e9908fc5ddebe3ec6eca9f55172b630f21a (diff)
layer 30 support
Diffstat (limited to 'tgl-layout.h')
-rw-r--r--tgl-layout.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/tgl-layout.h b/tgl-layout.h
index e2c3a81..51dcdbc 100644
--- a/tgl-layout.h
+++ b/tgl-layout.h
@@ -97,13 +97,19 @@ struct tgl_session {
struct tgl_timer *ev;
};
+struct tgl_dc_option {
+ struct tgl_dc_option *next;
+ char *ip;
+ int port;
+};
+
struct tgl_dc {
int id;
- int port;
+ //int port;
int flags;
int rsa_key_idx;
enum tgl_dc_state state;
- char *ip;
+ //char *ip;
//char *user;
struct tgl_session *sessions[MAX_DC_SESSIONS];
char auth_key[256];
@@ -120,6 +126,9 @@ struct tgl_dc {
int server_time_delta;
double server_time_udelta;
+
+ // ipv4, ipv6, ipv4_media, ipv6_media
+ struct tgl_dc_option *options[4];
};
enum tgl_message_media_type {