Sane C++ Libraries
C++ Platform Abstraction Libraries
Loading...
Searching...
No Matches
SC::HttpWebSocketConnectionPump Struct Reference

Optional stream pump that binds a WebSocket transport to an endpoint lifecycle. More...

#include <HttpWebSocket.h>

Public Member Functions

Result attach (const HttpWebSocketTransportView &transport, HttpWebSocketEndpointRole endpointRole)
 
void detach ()
 
Result writeFrame (Span< const char > frame)
 
Result flushPendingControlFrame ()
 
bool isAttached () const
 
HttpWebSocketEndpointgetEndpoint ()
 
const HttpWebSocketEndpointgetEndpoint () const
 
void onData (AsyncBufferView::ID bufferID)
 
void onStreamEnd ()
 

Public Attributes

Function< Result(HttpWebSocketOpcode, Span< char >, bool)> onDataFramePayload
 
Function< void()> onEnd
 
Function< void(Result)> onError
 

Detailed Description

Optional stream pump that binds a WebSocket transport to an endpoint lifecycle.


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