Network\Connection::read PHP Method

read() public method

Read data from the socket.
public read ( $length = XPSPL_SOCKET_READ_LENGTH, $start ) : void
return void
    public function read($length = XPSPL_SOCKET_READ_LENGTH, $start = 0)
    {
        return substr($this->_read_buffer, $start, $length);
    }