Commit ed25b9f0 authored by Niels Möller's avatar Niels Möller
Browse files

(PROTOCOL_ERROR): Redefine macro (kind of kludgy).

(channel_pending_close, channel_finished): New functions, replacing the
EXC_FINISH_PENDING and EXC_FINISH_CHANNEL exceptions.
(format_global_failure, format_global_success)
(format_open_confirmation, prepare_window_adjust): Made static.
(class exc_finish_channel_handler): Deleted.
(do_exc_finish_channel_handler, make_exc_finish_channel_handler):
Deleted.
(init_channel_table): Replaces make_channel_table. New arguments
write and kill.
(kill_channels): New function.
(use_channel): Removed argument local_channel_number.
(register_channel): Don't set up any exception handler. Initialize
channel->local_channel_number.
(lookup_channel, lookup_channel_reserved): Added asserts.
(channel_adjust_rec_window): New function. Replaces
adjust_rec_window.
(channel_maybe_close): New function.
(handle_channel_eof, channel_eof): Use channel_maybe_close.
(handle_channel_close, handle_open_failure, channel_close): Use
channel_finished.
(channel_transmit_data, channel_transmit_extended): Send the data,
rather than returning a formatted packet.

Rev: src/channel.c:1.125.2.6
parent 5dd0c957
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment