1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-25 01:02:24 +00:00
putty-source/proxy
Simon Tatham 215b9d1775 Actually print announcements of Interactors' identity.
Finally, the payoff from all of this refactoring: now, when a proxy
prompts interactively during connection setup, you get a message in
advance telling you which Interactor is originating the following
messages.

To achieve this, I've arranged to link Interactors together into a
list, so that any Interactor created by a proxy has a 'parent' pointer
pointing to the Interactor its client passed to new_connection().

This allows interactor_announce() to follow the links back up the
chain and count them, so that it knows whether it's a primary
connection, or a proxy, or a proxy-for-a-proxy, or more generally an
nth-order proxy, and can include that in its announcement.

And secondly, once interactor_announce() reaches the top of the chain,
it can use that as a storage location agreed on by all Interactors in
the whole setup, to tell each other which one of them was the last to
do anything interactive. Then, whenever there's a change of
Interactor, a message can be printed to indicate it to the user; and
when the same Interactor does multiple things in succession, you don't
get a slew of pointless messages in between them all.
2021-10-30 18:20:58 +01:00
..
cproxy.c Move proxy-related source files into a subdirectory. 2021-10-30 17:29:24 +01:00
interactor.c Actually print announcements of Interactors' identity. 2021-10-30 18:20:58 +01:00
nocproxy.c Move proxy-related source files into a subdirectory. 2021-10-30 17:29:24 +01:00
noproxy.c Pass an Interactor to new_connection(). 2021-10-30 18:19:56 +01:00
nosshproxy.c Pass an Interactor to new_connection(). 2021-10-30 18:19:56 +01:00
pproxy.c Move proxy-related source files into a subdirectory. 2021-10-30 17:29:24 +01:00
proxy.c Pass an Interactor to new_connection(). 2021-10-30 18:19:56 +01:00
proxy.h Move proxy-related source files into a subdirectory. 2021-10-30 17:29:24 +01:00
sshproxy.c Actually print announcements of Interactors' identity. 2021-10-30 18:20:58 +01:00