requestMtu method

  1. @override
Future<int> requestMtu(
  1. int requested
)
override

Returns the usable ATT MTU. Most platforms negotiate the MTU automatically and ignore the requested mtu (reporting the auto-negotiated value); Android honours an explicit request. Windows reports the ATT default (23).

Implementation

@override
Future<int> requestMtu(int requested) async {
  mtu = requested.clamp(23, 517);
  return mtu;
}