webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Properties | List of all members
webkitpy.thirdparty.mod_pywebsocket.standalone._StandaloneConnection Class Reference
Inheritance diagram for webkitpy.thirdparty.mod_pywebsocket.standalone._StandaloneConnection:

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)
 

Detailed Description

Mimic mod_python mp_conn.

Constructor & Destructor Documentation

◆ __init__()

def webkitpy.thirdparty.mod_pywebsocket.standalone._StandaloneConnection.__init__ (   self,
  request_handler 
)
Construct an instance.

Args:
    request_handler: A WebSocketRequestHandler instance.

Member Function Documentation

◆ get_local_addr()

def webkitpy.thirdparty.mod_pywebsocket.standalone._StandaloneConnection.get_local_addr (   self)
Getter to mimic mp_conn.local_addr.

◆ get_memorized_lines()

def webkitpy.thirdparty.mod_pywebsocket.standalone._StandaloneConnection.get_memorized_lines (   self)
Get memorized lines.

◆ get_remote_addr()

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.

◆ read()

def webkitpy.thirdparty.mod_pywebsocket.standalone._StandaloneConnection.read (   self,
  length 
)
Mimic mp_conn.read().

◆ write()

def webkitpy.thirdparty.mod_pywebsocket.standalone._StandaloneConnection.write (   self,
  data 
)
Mimic mp_conn.write().

Property Documentation

◆ local_addr

webkitpy.thirdparty.mod_pywebsocket.standalone._StandaloneConnection.local_addr = property(get_local_addr)
static

◆ remote_addr

webkitpy.thirdparty.mod_pywebsocket.standalone._StandaloneConnection.remote_addr = property(get_remote_addr)
static

The documentation for this class was generated from the following file: