1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00
putty-source/otherbackends
Simon Tatham 0b099b6a6f Non-SSH network backends: handle PLUGLOG_CONNECT_SUCCESS.
All four of the other network-protocol backends (Raw, Telnet, rlogin
and SUPDUP) now have a 'socket_connected' flag, which starts off false
and is set to true when (if) their Socket signals that the connection
attempt has succeeded.

This field is used to tell backend_socket_log whether the session has
started yet (hence, whether it should still be logging messages from
the proxy). This replaces various ad-hoc answers to that question in
each backend, which were the best I could do when sockets didn't
notify connection success. Now they do, we can do it properly.

Also, the new flag controls the answer to each backend's sendok()
method, which makes them all satisfy a new policy rule: no backend
shall return true from sendok() while its network connection attempt
is still ongoing.

(Rationale: the network connection attempt may in future involve a
proxy implementation interacting with the user via the terminal, and
it can't do that if the backend is already consuming all the terminal
input.)
2021-09-13 12:06:45 +01:00
..
CMakeLists.txt Move other backends into a subdirectory. 2021-04-22 18:24:15 +01:00
raw.c Non-SSH network backends: handle PLUGLOG_CONNECT_SUCCESS. 2021-09-13 12:06:45 +01:00
rlogin.c Non-SSH network backends: handle PLUGLOG_CONNECT_SUCCESS. 2021-09-13 12:06:45 +01:00
supdup.c Non-SSH network backends: handle PLUGLOG_CONNECT_SUCCESS. 2021-09-13 12:06:45 +01:00
telnet.c Non-SSH network backends: handle PLUGLOG_CONNECT_SUCCESS. 2021-09-13 12:06:45 +01:00
testback.c testback.c: remove emacs magic comment. 2021-09-12 15:10:35 +01:00