1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-24 14:30:39 -05:00

Packet protocol layers: new 'final_output' method.

This is called just before closing the connection, and gives every PPL
one last chance to output anything to the user that it might have
buffered.

No functional change: all implementations so far are trivial, except
that the transport layer passes the call on to its higher
layer (because otherwise nothing would do so).
This commit is contained in:
Simon Tatham
2023-04-29 11:35:20 +01:00
parent fe63b5d57e
commit d6e6919f69
10 changed files with 36 additions and 0 deletions

View File

@ -40,6 +40,7 @@ static const PacketProtocolLayerVtable ssh1_connection_vtable = {
.special_cmd = ssh1_connection_special_cmd,
.reconfigure = ssh1_connection_reconfigure,
.queued_data_size = ssh_ppl_default_queued_data_size,
.final_output = ssh_ppl_default_final_output,
.name = NULL, /* no layer names in SSH-1 */
};