async connections working

--HG--
branch : fastopen
This commit is contained in:
Matt Johnston
2015-02-18 22:46:15 +08:00
parent 8795d733ec
commit 755c1458f0
11 changed files with 108 additions and 105 deletions

View File

@@ -93,6 +93,15 @@ static const struct ChanType *cli_chantypes[] = {
NULL /* Null termination */
};
void cli_connected(int result, int sock, void* userdata, const char *errstring)
{
if (result == DROPBEAR_FAILURE)
{
dropbear_exit("Connect failed: %s", errstring);
}
ses.sock_in = ses.sock_out = sock;
}
void cli_session(int sock_in, int sock_out) {
common_session_init(sock_in, sock_out);