|
Barracuda Application Server C/C++ Reference
Native APIs, integration guides, and platform interfaces
|
WebSocket Server (WSS)
#include <WebSocketServer.h>
Public Member Functions | |
| WSS (WSSCB *cb, SoDisp *disp, int startSize, int expandSize) | |
| Initialize an unconnected WebSocket object. More... | |
| ~WSS () | |
| Close the transport and free receive storage, without a WebSocket close handshake or close callback. More... | |
| int | upgrade (HttpRequest *req) |
| Perform the server handshake and take over the request's connection. More... | |
| int | connect (HttpConnection *con) |
| Take an HTTP connection after its WebSocket handshake is complete. More... | |
| int | write (const void *data, int len, bool isTxt) |
| Send one complete, unmasked server frame using blocking transport writes. More... | |
| int | close (int statusCode=1000) |
| Attempt to send a close frame, then close the transport immediately. More... | |
| bool | isValid () |
| Check the local transport handle. More... | |