close function

bool close()

Closes the socket to the RCON server. Returns a bool that specified whether the socket was successfully destroyed.

Implementation

bool close() {
  if (rconSck == null) {
    return false;
  }
  rconSck!.destroy();
  return true;
}