public function close()
    {
        if (!is_resource($this->socket)) {
            return;
        }

        fclose($this->socket);
        $this->socket = null;
    }
public function close()
    {
        if (!is_resource($this->socket)) {
            return;
        }

        fclose($this->socket);
        $this->socket = null;
    }
public function close ( ) { if ( ! is_resource ( $ this -> socket ) ) { return ; } fclose ( $ this -> socket ) ; $ this -> socket = null ; }
Closes underlying socket explicitly
Closes underlying socket explicitly