|
|
| server (upper_layer_ptr up) |
| |
| error | start (octet_stream::lower_layer *down) override |
| | Initializes the upper layer.
|
| |
| void | abort (const error &reason) override |
| | Called by the lower layer for cleaning up any state in case of an error or when disposed.
|
| |
| ptrdiff_t | consume (byte_span input, byte_span) override |
| | Consumes bytes from the lower layer.
|
| |
| void | prepare_send () override |
| | Gives the upper layer an opportunity to add additional data to the output buffer.
|
| |
| bool | done_sending () override |
| | Queries whether all pending data has been sent.
|
| |
| virtual error | start (lower_layer *down)=0 |
| | Initializes the upper layer.
|
| |
| virtual ptrdiff_t | consume (byte_span buffer, byte_span delta)=0 |
| | Consumes bytes from the lower layer.
|
| |
| virtual void | prepare_send ()=0 |
| | Gives the upper layer an opportunity to add additional data to the output buffer.
|
| |
| virtual bool | done_sending ()=0 |
| | Queries whether all pending data has been sent.
|
| |
| virtual void | abort (const error &reason)=0 |
| | Called by the lower layer for cleaning up any state in case of an error or when disposed.
|
| |
Implements the server part for the WebSocket Protocol as defined in RFC.
- Initially, the layer performs the WebSocket handshake. Once completed, this layer decodes RFC 6455 frames and forwards binary and text messages to
UpperLayer.