Class RemoteWindow

All Implemented Interfaces:
Closeable, AutoCloseable, ChannelHolder

public class RemoteWindow extends Window
A Window reflecting this side's view of the peer's LocalWindow. A RemoteWindow is initialized when the peer announces its packet and window sizes in the initial message exchange when opening a channel. Whenever this side wants to send data, it checks whether the remote window has still enough space; if not, it sends only as much data as possible. When data is sent, the remote window size is reduced by the number of data bytes sent. When the window size drops to zero, no data is sent at all, and this side will have to wait for an SSH_MSG_CHANNEL_WINDOW_ADJUST message from the peer, which will increase the available window size again.
Author:
Apache MINA SSHD Project