comparison cli-main.c @ 1025:02baa0b334e8 fastopen

async connections working
author Matt Johnston <matt@ucc.asn.au>
date Wed, 18 Feb 2015 22:46:15 +0800
parents 4121ca987e6a
children daf21fd50abf
comparison
equal deleted inserted replaced
1024:aac0095dc3b4 1025:02baa0b334e8
70 cli_proxy_cmd(&sock_in, &sock_out); 70 cli_proxy_cmd(&sock_in, &sock_out);
71 m_free(cli_opts.proxycmd); 71 m_free(cli_opts.proxycmd);
72 } else 72 } else
73 #endif 73 #endif
74 { 74 {
75 int sock = connect_remote(cli_opts.remotehost, cli_opts.remoteport, &error); 75 connect_remote(cli_opts.remotehost, cli_opts.remoteport, cli_connected, NULL);
76 sock_in = sock_out = sock; 76 sock_in = sock_out = -1;
77 }
78
79 if (sock_in < 0) {
80 dropbear_exit("%s", error);
81 } 77 }
82 78
83 cli_session(sock_in, sock_out); 79 cli_session(sock_in, sock_out);
84 80
85 /* not reached */ 81 /* not reached */