isValidPort static method

bool isValidPort(
  1. int port
)

Check if port is valid

port - The port number to validate Returns true if port is valid

Implementation

static bool isValidPort(int port) {
  return port >= 1 && port <= 65535;
}