final public function read($byte_count=null)
    {

        $buffer = '';
        $read = array($this->socket);

        $updated = @stream_select($read, $write, $except, 1);

        if ($updated > 0) {
            $data = fread($this->socket, 4096);
            if($data) {
                   $buffer = $data;
            }

        }

        if(!empty($buffer)){
            $this->log('RECEIVED: '.$buffer);
        }

        return $buffer;
    }
final public function read($byte_count=null)
    {

        $buffer = '';
        $read = array($this->socket);

        $updated = @stream_select($read, $write, $except, 1);

        if ($updated > 0) {
            $data = fread($this->socket, 4096);
            if($data) {
                   $buffer = $data;
            }

        }

        if(!empty($buffer)){
            $this->log('RECEIVED: '.$buffer);
        }

        return $buffer;
    }
final public function read ( $ byte_count = null ) { $ buffer = '' ; $ read = array ( $ this -> socket ) ; $ updated = @ stream_select ( $ read , $ write , $ except , 1 ) ; if ( $ updated > 0 ) { $ data = fread ( $ this -> socket , 4096 ) ; if ( $ data ) { $ buffer = $ data ; } } if ( ! empty ( $ buffer ) ) { $ this -> log ( 'RECEIVED: ' . $ buffer ) ; } return $ buffer ; }
Reads from the socket, should be protected but can't because this is inherited as public

@return string The buffer data read from the socket
Reads from the socket should be protected but can t because this is inherited as public