|
Symbian platform (C++)
SDK native APIs, runtime and tooling
|
Single-owner RFC 8441 WebSocket endpoint over nghttp2. More...
#include <cpp/symbian/websocket/websocket.h>
Classes | |
| struct | State |
Public Member Functions | |
| ~WebSocket () | |
| WebSocket (const WebSocket &)=delete | |
| WebSocket & | operator= (const WebSocket &)=delete |
| absl::Status | Feed (std::string_view bytes) |
| absl::StatusOr< std::string > | TakeOutput () |
| absl::Status | Send (std::string_view message) |
| absl::StatusOr< std::optional< std::string > > | Receive () |
| absl::Status | Close () |
| void | Abort () |
| bool | open () const |
| bool | closed () const |
| std::size_t | buffered_amount () const |
Static Public Member Functions | |
| static absl::StatusOr< std::unique_ptr< WebSocket > > | Create (Role role, Options options={}) |
Single-owner RFC 8441 WebSocket endpoint over nghttp2.
Feed receives arbitrary TCP chunks; TakeOutput returns HTTP/2 bytes for transport. Send/Receive preserve binary message boundaries, with bounded queues and HTTP/2 flow control. Each endpoint serves one CONNECT stream. The caller supplies unpredictable masking keys for every client frame. This codec owns no socket, thread, Python reference or authentication policy. Drain output before reading again, including after peer close. An error is terminal; discard the connection after any transport failure.
|
default |
|
delete |
| void symbian::websocket::WebSocket::Abort | ( | ) |
| std::size_t symbian::websocket::WebSocket::buffered_amount | ( | ) | const |
| absl::Status symbian::websocket::WebSocket::Close | ( | ) |
| bool symbian::websocket::WebSocket::closed | ( | ) | const |
|
static |
| absl::Status symbian::websocket::WebSocket::Feed | ( | std::string_view | bytes | ) |
| bool symbian::websocket::WebSocket::open | ( | ) | const |
| absl::StatusOr< std::optional< std::string > > symbian::websocket::WebSocket::Receive | ( | ) |
| absl::Status symbian::websocket::WebSocket::Send | ( | std::string_view | message | ) |
| absl::StatusOr< std::string > symbian::websocket::WebSocket::TakeOutput | ( | ) |