Module Expr Str Import alias ImportFrom alias ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad TupleLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Return NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad ExceptHandler type NameLoad name NameStore body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Raise decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad While CompareGt NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AugAssignSub NameStore Call NameLoad NameLoad Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Num If CompareEq NameLoad NameLoad body Break Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad Str attr NameLoad decorator_list decorator_list
N/A N/A Base stream class.
 N/A socket mod_pywebsocket util ConnectionTerminatedException N/A Exception N/A N/A This exception will be raised when a connection is terminated
    unexpectedly.
     N/A N/A InvalidFrameException N/A ConnectionTerminatedException N/A N/A This exception will be raised when we received an invalid frame we
    cannot parse.
     N/A N/A BadOperationException N/A Exception N/A N/A This exception will be raised when send_message() is called on
    server-terminated connection or receive_message() is called on
    client-terminated connection.
     N/A N/A UnsupportedFrameException N/A Exception N/A N/A This exception will be raised when we receive a frame with flag, opcode
    we cannot handle. Handlers can just catch and ignore this exception and
    call receive_message() again to continue processing the next frame.
     N/A N/A InvalidUTF8Exception N/A Exception N/A N/A This exception will be raised when we receive a text frame which
    contains invalid UTF-8 strings.
     N/A N/A StreamBase N/A object N/A N/A Base stream class. __init__ N/A N/A self request N/A N/A N/A Construct an instance.

        Args:
            request: mod_python request.
         N/A N/A self _logger N/A N/A util get_class_logger self N/A N/A self _request request N/A _read N/A N/A self length N/A N/A N/A Reads length bytes from connection. In case we catch any exception,
        prepends remote address to the exception message and raise again.

        Raises:
            ConnectionTerminatedException: when read returns empty string.
         N/A N/A N/A read_bytes N/A N/A N/A N/A self _request connection read length N/A N/A read_bytes N/A N/A N/A ConnectionTerminatedException N/A Receiving %d byte failed. Peer (%r) closed connection N/A length N/A N/A N/A N/A self _request connection remote_addr N/A read_bytes N/A N/A N/A N/A socket error N/A e N/A N/A N/A ConnectionTerminatedException N/A Receiving %d byte failed. socket.error (%s) occurred N/A length e N/A N/A IOError N/A e N/A N/A N/A ConnectionTerminatedException N/A Receiving %d byte failed. IOError (%s) occurred N/A length e N/A _write N/A N/A self bytes_to_write N/A N/A N/A Writes given bytes to connection. In case we catch any exception,
        prepends remote address to the exception message and raise again.
         N/A N/A N/A N/A N/A N/A N/A self _request connection write bytes_to_write N/A N/A N/A Exception N/A e N/A N/A N/A N/A util prepend_message_to_exception N/A Failed to send message to %r:  N/A N/A N/A N/A self _request connection remote_addr e N/A N/A receive_bytes N/A N/A self length N/A N/A N/A Receives multiple bytes. Retries read when we couldn't receive the
        specified amount.

        Raises:
            ConnectionTerminatedException: when read returns empty string.
         N/A read_bytes N/A N/A N/A length 0 N/A N/A new_read_bytes N/A N/A self _read length N/A N/A N/A read_bytes append new_read_bytes N/A length N/A len new_read_bytes N/A N/A N/A join read_bytes N/A _read_until N/A N/A self delim_char N/A N/A N/A Reads bytes until we encounter delim_char. The result will not
        contain delim_char.

        Raises:
            ConnectionTerminatedException: when read returns empty string.
         N/A read_bytes N/A N/A True N/A N/A ch N/A N/A self _read 1 N/A N/A ch delim_char N/A N/A N/A N/A N/A read_bytes append ch N/A N/A N/A join read_bytes N/A N/A