OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::WebSocket::Receiver Class Reference

#include <websocket.hpp>

Collaboration diagram for openvpn::WebSocket::Receiver:
[legend]

Public Member Functions

 Receiver (const bool is_client_arg)
 
Buffer buf_unframed ()
 
bool complete ()
 
void add_buf (BufferAllocated &&inbuf)
 
void reset ()
 
Status status () const
 

Private Member Functions

void reset_buf ()
 
void reset_pod ()
 
void verify_message_complete () const
 
bool complete_ ()
 

Private Attributes

const bool is_client
 
bool header_complete
 
bool message_complete
 
std::uint32_t mask
 
std::uint64_t size
 
Status s
 
BufferAllocated buf
 

Detailed Description

Definition at line 247 of file websocket.hpp.

Constructor & Destructor Documentation

◆ Receiver()

openvpn::WebSocket::Receiver::Receiver ( const bool  is_client_arg)
inline

Definition at line 250 of file websocket.hpp.

Member Function Documentation

◆ add_buf()

void openvpn::WebSocket::Receiver::add_buf ( BufferAllocated &&  inbuf)
inline

Definition at line 321 of file websocket.hpp.

◆ buf_unframed()

Buffer openvpn::WebSocket::Receiver::buf_unframed ( )
inline

Definition at line 256 of file websocket.hpp.

◆ complete()

bool openvpn::WebSocket::Receiver::complete ( )
inline

Definition at line 265 of file websocket.hpp.

◆ complete_()

bool openvpn::WebSocket::Receiver::complete_ ( )
inlineprivate

Definition at line 377 of file websocket.hpp.

Here is the caller graph for this function:

◆ reset()

void openvpn::WebSocket::Receiver::reset ( )
inline

Definition at line 332 of file websocket.hpp.

◆ reset_buf()

void openvpn::WebSocket::Receiver::reset_buf ( )
inlineprivate

Definition at line 347 of file websocket.hpp.

Here is the caller graph for this function:

◆ reset_pod()

void openvpn::WebSocket::Receiver::reset_pod ( )
inlineprivate

Definition at line 363 of file websocket.hpp.

Here is the caller graph for this function:

◆ status()

Status openvpn::WebSocket::Receiver::status ( ) const
inline

Definition at line 340 of file websocket.hpp.

◆ verify_message_complete()

void openvpn::WebSocket::Receiver::verify_message_complete ( ) const
inlineprivate

Definition at line 371 of file websocket.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ buf

BufferAllocated openvpn::WebSocket::Receiver::buf
private

Definition at line 413 of file websocket.hpp.

◆ header_complete

bool openvpn::WebSocket::Receiver::header_complete
private

Definition at line 408 of file websocket.hpp.

◆ is_client

const bool openvpn::WebSocket::Receiver::is_client
private

Definition at line 407 of file websocket.hpp.

◆ mask

std::uint32_t openvpn::WebSocket::Receiver::mask
private

Definition at line 410 of file websocket.hpp.

◆ message_complete

bool openvpn::WebSocket::Receiver::message_complete
private

Definition at line 409 of file websocket.hpp.

◆ s

Status openvpn::WebSocket::Receiver::s
private

Definition at line 412 of file websocket.hpp.

◆ size

std::uint64_t openvpn::WebSocket::Receiver::size
private

Definition at line 411 of file websocket.hpp.


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