void vortex_channel_set_window_size ( VortexChannel channel,
int  desired_size 
)

Allows the caller to change the channel window size.

A larger window size than the default (4096) allows the remote peer to send more data over this channel at once. This increases the bandwidth that can be received, especially over high-latency sockets, at the expense of increasing the latency for other channels.

NOTE: the value configured at this function is not applied directly. This is because a BEEP peer can't modify or reduce an announced window size, the change you request via vortex_channel_set_window_size will be only applied until it is required to announce more window.

This is why vortex_channel_get_window_size returns previously configured value if you call to that function just after calling vortex_channel_set_window_size.

Parameters
channelthe channel to operate on.
desired_sizethe desired window size; it is recomended to be at least 4096.