user input in clientloop.c

Damien Miller djm at mindrot.org
Mon Jul 29 18:28:24 EST 2013


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


More information about the openssh-unix-dev mailing list