/** * Read a character from the socket. * * @return int the character read */ protected function _readChar() { $this->_input_buffer .= $_read = $this->_socket->read(1); return chr(Reader::unpackByte($_read)); }