From ed9217f262714094068a724537fa15ac30130333 Mon Sep 17 00:00:00 2001 From: vvaltman Date: Tue, 16 Jun 2015 14:08:35 +0300 Subject: layer 30 support --- tgl-layout.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'tgl-layout.h') 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 { -- cgit v1.2.3