comparison cli-session.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 64c0aa01e2b6
comparison
equal deleted inserted replaced
1026:59a1146e8b9d 1027:daf21fd50abf
100 dropbear_exit("Connect failed: %s", errstring); 100 dropbear_exit("Connect failed: %s", errstring);
101 } 101 }
102 ses.sock_in = ses.sock_out = sock; 102 ses.sock_in = ses.sock_out = sock;
103 } 103 }
104 104
105 void cli_session(int sock_in, int sock_out) { 105 void cli_session(int sock_in, int sock_out, struct dropbear_progress_connection *progress) {
106 106
107 common_session_init(sock_in, sock_out); 107 common_session_init(sock_in, sock_out);
108
109 if (progress) {
110 connect_set_writequeue(progress, &ses.writequeue);
111 }
108 112
109 chaninitialise(cli_chantypes); 113 chaninitialise(cli_chantypes);
110 114
111 /* Set up cli_ses vars */ 115 /* Set up cli_ses vars */
112 cli_session_init(); 116 cli_session_init();
117
113 118
114 /* Ready to go */ 119 /* Ready to go */
115 sessinitdone = 1; 120 sessinitdone = 1;
116 121
117 /* Exchange identification */ 122 /* Exchange identification */