unblockTCPPort method

Future<bool> unblockTCPPort(
  1. int port
)

Unblocks a specific TCP port.

  • port: The TCP port to unblock.

Returns a Future that completes with true if the port was successfully unblocked, or false if it failed.

Implementation

Future<bool> unblockTCPPort(int port) async {
  var response = await _sendCommand("unblock $port");
  return response?.contains('true') ?? false;
}