Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
tornado.websocket.WebSocketProtocol13 Class Reference
Inheritance diagram for tornado.websocket.WebSocketProtocol13:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def accept_connection
def close
def write_message

Public Attributes

 client_terminated
 server_terminated

Private Member Functions

def _accept_connection
def _challenge_response
def _handle_message
def _handle_websocket_headers
def _on_frame_data
def _on_frame_length_16
def _on_frame_length_64
def _on_frame_start
def _on_masking_key
def _receive_frame
def _write_frame

Private Attributes

 _final_frame
 _fragmented_message_buffer
 _fragmented_message_opcode
 _frame_length
 _frame_mask
 _frame_opcode
 _frame_opcode_is_control
 _waiting

Detailed Description

Implementation of the WebSocket protocol from RFC 6455.

This class supports versions 7 and 8 of the protocol in addition to the
final version 13.

Definition at line 439 of file websocket.py.


Constructor & Destructor Documentation

def tornado.websocket.WebSocketProtocol13.__init__ (   self,
  handler 
)

Reimplemented from tornado.websocket.WebSocketProtocol.

Definition at line 445 of file websocket.py.


Member Function Documentation

Definition at line 481 of file websocket.py.

Definition at line 474 of file websocket.py.

def tornado.websocket.WebSocketProtocol13._handle_message (   self,
  opcode,
  data 
) [private]

Definition at line 611 of file websocket.py.

Verifies all invariant- and required headers

If a header is missing or have an incorrect value ValueError will be
raised

Definition at line 464 of file websocket.py.

def tornado.websocket.WebSocketProtocol13._on_frame_data (   self,
  data 
) [private]

Definition at line 570 of file websocket.py.

def tornado.websocket.WebSocketProtocol13._on_frame_length_16 (   self,
  data 
) [private]

Definition at line 558 of file websocket.py.

def tornado.websocket.WebSocketProtocol13._on_frame_length_64 (   self,
  data 
) [private]

Definition at line 562 of file websocket.py.

def tornado.websocket.WebSocketProtocol13._on_frame_start (   self,
  data 
) [private]

Definition at line 531 of file websocket.py.

def tornado.websocket.WebSocketProtocol13._on_masking_key (   self,
  data 
) [private]

Definition at line 566 of file websocket.py.

Definition at line 528 of file websocket.py.

def tornado.websocket.WebSocketProtocol13._write_frame (   self,
  fin,
  opcode,
  data 
) [private]

Definition at line 502 of file websocket.py.

Definition at line 455 of file websocket.py.

Closes the WebSocket connection.

Definition at line 639 of file websocket.py.

def tornado.websocket.WebSocketProtocol13.write_message (   self,
  message,
  binary = False 
)
Sends the given message to the client of this Web Socket.

Definition at line 518 of file websocket.py.


Member Data Documentation

Definition at line 445 of file websocket.py.

Definition at line 445 of file websocket.py.

Definition at line 445 of file websocket.py.

Definition at line 445 of file websocket.py.

Definition at line 445 of file websocket.py.

Definition at line 445 of file websocket.py.

Definition at line 531 of file websocket.py.

Definition at line 445 of file websocket.py.

Reimplemented from tornado.websocket.WebSocketProtocol.

Definition at line 611 of file websocket.py.

Reimplemented from tornado.websocket.WebSocketProtocol.

Definition at line 639 of file websocket.py.


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


rosbridge_server
Author(s): Jonathan Mace
autogenerated on Mon Oct 6 2014 06:58:15