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

async connections working
author Matt Johnston <matt@ucc.asn.au>
date Wed, 18 Feb 2015 22:46:15 +0800
parents 0bb16232e7c4
children daf21fd50abf
comparison
equal deleted inserted replaced
1024:aac0095dc3b4 1025:02baa0b334e8
91 &cli_chan_agent, 91 &cli_chan_agent,
92 #endif 92 #endif
93 NULL /* Null termination */ 93 NULL /* Null termination */
94 }; 94 };
95 95
96 void cli_connected(int result, int sock, void* userdata, const char *errstring)
97 {
98 if (result == DROPBEAR_FAILURE)
99 {
100 dropbear_exit("Connect failed: %s", errstring);
101 }
102 ses.sock_in = ses.sock_out = sock;
103 }
104
96 void cli_session(int sock_in, int sock_out) { 105 void cli_session(int sock_in, int sock_out) {
97 106
98 common_session_init(sock_in, sock_out); 107 common_session_init(sock_in, sock_out);
99 108
100 chaninitialise(cli_chantypes); 109 chaninitialise(cli_chantypes);