start method

  1. @mustCallSuper
Future<void> start()

Starts listening for incoming connections.

Implementation

@mustCallSuper
Future<void> start() async {
  await bind();

  packets.listen((packet) {
    final connection = _findExistingConnection(packet.address) ??
        Connection(clientSalt: 0, serverSalt: 0, address: packet.address);
    if (_connectionTimers[connection] != null) {
      _connectionTimeout(connection);
    }
  });
}