Hi folks, Could you tell me which function in clientloop.c is responsible for reading user keyboard input? What I found are client_make_packets_from_stdin_data() and client_process_input(), but they not for 'compat20' mode. My app runs in 'compat20'. Thanks, Bob
On Mon, 29 Jul 2013, Bob Chen wrote:> Hi folks, > > > Could you tell me which function in clientloop.c is > responsible for reading user keyboard input?None of them :) For protocol 2, most of the file descriptor interaction is handled by the channels code, so see channels.c. Specifically channel_pre_open() to arm the fd_sets, channel_post_open() => channel_handle_rfd() channel_handle_wfd() and channel_handle_efd() to read or write data. -d