connection_in and connection_out
Damien Miller
djm at mindrot.org
Thu Jul 11 10:49:08 EST 2013
On Wed, 10 Jul 2013, Bob Chen wrote:
> Hi,
>
>
> I'm a newbie to openssh and was trying to read the source code
> recently. Could anyone tell me why in sshd the connection_in and
> connection_out are the same(seems to be integer 3 in my machine).
> connection_in is used in process_input(readset), and connection_out is
> used in process_output(writeset); But how does it work if it tries to
> read and write from the same file descriptor?
sockets are bidirectional. If the connection was via a proxy command then they
would point to different file descriptors.
-d
More information about the openssh-unix-dev
mailing list