listAcceptedAddressesOnTCPPorts abstract method

Future<Set<(String, int)>> listAcceptedAddressesOnTCPPorts({
  1. bool sudo = false,
  2. Set<int>? allowedPorts,
})

Lists all the currently accepted addresses on TCP ports.

  • sudo: A flag indicating if sudo privileges should be used. Defaults to false.
  • allowedPorts: A set of allowed ports, or null to allow all ports.

Returns a Future that completes with a Set of (address,port) entries.

Implementation

Future<Set<(String, int)>> listAcceptedAddressesOnTCPPorts(
    {bool sudo = false, Set<int>? allowedPorts});