In theory TFO should work. Needs platform cleanup and testing

--HG--
branch : fastopen
This commit is contained in:
Matt Johnston
2015-02-19 00:32:00 +08:00
parent 5f0cc969a0
commit 76a3eb393c
7 changed files with 60 additions and 10 deletions

View File

@@ -102,15 +102,20 @@ void cli_connected(int result, int sock, void* userdata, const char *errstring)
ses.sock_in = ses.sock_out = sock;
}
void cli_session(int sock_in, int sock_out) {
void cli_session(int sock_in, int sock_out, struct dropbear_progress_connection *progress) {
common_session_init(sock_in, sock_out);
if (progress) {
connect_set_writequeue(progress, &ses.writequeue);
}
chaninitialise(cli_chantypes);
/* Set up cli_ses vars */
cli_session_init();
/* Ready to go */
sessinitdone = 1;