CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
psyclone_client.transports.WsFrames Class Reference

Static Public Member Functions

 new_key ()
 accept_for (key)
 encode (opcode, payload, mask=True)
 read (recv_exact, max_bytes)

Static Public Attributes

 CONT
 TEXT
 BINARY
 CLOSE
 PING
 PONG

Detailed Description

RFC 6455 frames (client side: our frames are masked, the server's are not).

Definition at line 309 of file transports.py.

Member Function Documentation

◆ accept_for()

psyclone_client.transports.WsFrames.accept_for ( key)
static

Definition at line 318 of file transports.py.

References encode().

◆ encode()

psyclone_client.transports.WsFrames.encode ( opcode,
payload,
mask = True )
static

Definition at line 322 of file transports.py.

Referenced by accept_for().

◆ new_key()

psyclone_client.transports.WsFrames.new_key ( )
static

Definition at line 314 of file transports.py.

◆ read()

psyclone_client.transports.WsFrames.read ( recv_exact,
max_bytes )
static
Read one frame with recv_exact(n) -> bytes; returns (fin, opcode, payload).

Definition at line 344 of file transports.py.

Member Data Documentation

◆ BINARY

psyclone_client.transports.WsFrames.BINARY
static

Definition at line 311 of file transports.py.

◆ CLOSE

psyclone_client.transports.WsFrames.CLOSE
static

Definition at line 311 of file transports.py.

◆ CONT

psyclone_client.transports.WsFrames.CONT
static

Definition at line 311 of file transports.py.

◆ PING

psyclone_client.transports.WsFrames.PING
static

Definition at line 311 of file transports.py.

◆ PONG

psyclone_client.transports.WsFrames.PONG
static

Definition at line 311 of file transports.py.

◆ TEXT

psyclone_client.transports.WsFrames.TEXT
static

Definition at line 311 of file transports.py.


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