webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Public Member Functions | |
def | __init__ (self, request_handler) |
def | get_local_addr (self) |
def | get_remote_addr (self) |
def | write (self, data) |
def | read (self, length) |
def | get_memorized_lines (self) |
Properties | |
local_addr = property(get_local_addr) | |
remote_addr = property(get_remote_addr) | |
Mimic mod_python mp_conn.
def webkitpy.thirdparty.mod_pywebsocket.standalone._StandaloneConnection.__init__ | ( | self, | |
request_handler | |||
) |
Construct an instance. Args: request_handler: A WebSocketRequestHandler instance.
def webkitpy.thirdparty.mod_pywebsocket.standalone._StandaloneConnection.get_local_addr | ( | self | ) |
Getter to mimic mp_conn.local_addr.
def webkitpy.thirdparty.mod_pywebsocket.standalone._StandaloneConnection.get_memorized_lines | ( | self | ) |
Get memorized lines.
def webkitpy.thirdparty.mod_pywebsocket.standalone._StandaloneConnection.get_remote_addr | ( | self | ) |
Getter to mimic mp_conn.remote_addr. Setting the property in __init__ won't work because the request handler is not initialized yet there.
def webkitpy.thirdparty.mod_pywebsocket.standalone._StandaloneConnection.read | ( | self, | |
length | |||
) |
Mimic mp_conn.read().
def webkitpy.thirdparty.mod_pywebsocket.standalone._StandaloneConnection.write | ( | self, | |
data | |||
) |
Mimic mp_conn.write().
|
static |
|
static |