getAvailableConnectionSendWindow method

int getAvailableConnectionSendWindow()

Gets the available send window at the connection level.

Implementation

int getAvailableConnectionSendWindow() {
  final available = _remoteConnectionMaxData - _connectionBytesSent;
  return available > 0 ? available : 0;
}