src/PTel.php
public function recvChr() {
        if (!$this->_sock) { throw new SocketClientException("Connection gone!"); }
        $char = fgetc($this->_sock);
        if ($this->stream_eof()) { return false; }
        if ($char === TEL_IAC && $this->negotiation_enabled) {
            $this->_negotiate(fgetc($this->_sock));
            return "";
        }
        $this->_buff .= $char;
        return $char;
     }
public function recvChr() {
        if (!$this->_sock) { throw new SocketClientException("Connection gone!"); }
        $char = fgetc($this->_sock);
        if ($this->stream_eof()) { return false; }
        if ($char === TEL_IAC && $this->negotiation_enabled) {
            $this->_negotiate(fgetc($this->_sock));
            return "";
        }
        $this->_buff .= $char;
        return $char;
     }
public function recvChr ( ) { if ( ! $ this -> _sock ) { throw new SocketClientException ( "Connection gone!" ) ; } $ char = fgetc ( $ this -> _sock ) ; if ( $ this -> stream_eof ( ) ) { return false ; } if ( $ char === TEL_IAC && $ this -> negotiation_enabled ) { $ this -> _negotiate ( fgetc ( $ this -> _sock ) ) ; return "" ; } $ this -> _buff .= $ char ; return $ char ; }
Get char from socket or call negotiation method if found telnet
negotiaton command.

@throws  SocketClientException   On socket communication error
@return  char                    Char from socket connection
Get char from socket or call negotiation method if found telnet negotiaton command .