OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::WS::ChunkedHelper Class Reference

#include <chunked.hpp>

Public Member Functions

 ChunkedHelper ()
 
template<typename PARENT >
bool receive (PARENT &callback, BufferAllocated &buf)
 

Static Public Member Functions

static BufferPtr transmit (BufferPtr buf)
 

Private Types

enum  State {
  hex , post_hex , post_hex_lf , post_chunk_cr ,
  post_chunk_lf , post_content_cr , post_content_lf , done ,
  chunk
}
 

Private Attributes

State state
 
size_t size
 

Detailed Description

Definition at line 20 of file chunked.hpp.

Member Enumeration Documentation

◆ State

Enumerator
hex 
post_hex 
post_hex_lf 
post_chunk_cr 
post_chunk_lf 
post_content_cr 
post_content_lf 
done 
chunk 

Definition at line 22 of file chunked.hpp.

Constructor & Destructor Documentation

◆ ChunkedHelper()

openvpn::WS::ChunkedHelper::ChunkedHelper ( )
inline

Definition at line 36 of file chunked.hpp.

Member Function Documentation

◆ receive()

template<typename PARENT >
bool openvpn::WS::ChunkedHelper::receive ( PARENT &  callback,
BufferAllocated buf 
)
inline

Definition at line 43 of file chunked.hpp.

◆ transmit()

static BufferPtr openvpn::WS::ChunkedHelper::transmit ( BufferPtr  buf)
inlinestatic

Definition at line 139 of file chunked.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ size

size_t openvpn::WS::ChunkedHelper::size
private

Definition at line 174 of file chunked.hpp.

◆ state

State openvpn::WS::ChunkedHelper::state
private

Definition at line 173 of file chunked.hpp.


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