comparison cli-main.c @ 1027:daf21fd50abf fastopen

In theory TFO should work. Needs platform cleanup and testing
author Matt Johnston <matt@ucc.asn.au>
date Thu, 19 Feb 2015 00:32:00 +0800
parents 02baa0b334e8
children 0da8ba489c23
comparison
equal deleted inserted replaced
1026:59a1146e8b9d 1027:daf21fd50abf
45 int main(int argc, char ** argv) { 45 int main(int argc, char ** argv) {
46 #endif 46 #endif
47 47
48 int sock_in, sock_out; 48 int sock_in, sock_out;
49 char* error = NULL; 49 char* error = NULL;
50 struct dropbear_progress_connection *progress = NULL;
50 51
51 _dropbear_exit = cli_dropbear_exit; 52 _dropbear_exit = cli_dropbear_exit;
52 _dropbear_log = cli_dropbear_log; 53 _dropbear_log = cli_dropbear_log;
53 54
54 disallow_core(); 55 disallow_core();
70 cli_proxy_cmd(&sock_in, &sock_out); 71 cli_proxy_cmd(&sock_in, &sock_out);
71 m_free(cli_opts.proxycmd); 72 m_free(cli_opts.proxycmd);
72 } else 73 } else
73 #endif 74 #endif
74 { 75 {
75 connect_remote(cli_opts.remotehost, cli_opts.remoteport, cli_connected, NULL); 76 progress = connect_remote(cli_opts.remotehost, cli_opts.remoteport, cli_connected, NULL);
76 sock_in = sock_out = -1; 77 sock_in = sock_out = -1;
77 } 78 }
78 79
79 cli_session(sock_in, sock_out); 80 cli_session(sock_in, sock_out, progress);
80 81
81 /* not reached */ 82 /* not reached */
82 return -1; 83 return -1;
83 } 84 }
84 #endif /* DBMULTI stuff */ 85 #endif /* DBMULTI stuff */