receive method

  1. @override
Future<Pair<Uint8List?, SocketAddress?>> receive(
  1. int maxLen
)
override

Receives a data package via this channel.

Implementation

@override
Future<Pair<Uint8List?, SocketAddress?>> receive(int maxLen) async {
  try {
    return await reader.receive(maxLen);
  } on IOException {
    await close();
    rethrow;
  }
}