blockTCPPort method
Blocks a specific TCP port.
port: The TCP port to block.
Returns a Future that completes with true if the port was successfully blocked,
or false if it failed.
Implementation
Future<bool> blockTCPPort(int port) async {
var response = await _sendCommand("block $port");
return response?.contains('true') ?? false;
}