src/sb/Telnet.php
public function disconnect() {
        if ($this->socket) {
            if (!fclose($this->socket)) {
                throw new \Exception("Error while closing telnet socket");
            }
            $this->socket = NULL;
        }
        return true;
    }
public function disconnect() {
        if ($this->socket) {
            if (!fclose($this->socket)) {
                throw new \Exception("Error while closing telnet socket");
            }
            $this->socket = NULL;
        }
        return true;
    }
public function disconnect ( ) { if ( $ this -> socket ) { if ( ! fclose ( $ this -> socket ) ) { throw new \ Exception ( "Error while closing telnet socket" ) ; } $ this -> socket = NULL ; } return true ; }
Closes IP socket

@return boolean
Closes IP socket