OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::HTTP::HTMLSkip Class Reference

#include <htmlskip.hpp>

Collaboration diagram for openvpn::HTTP::HTMLSkip:
[legend]

Public Types

enum  Status { PENDING , MATCH , NOMATCH }
 

Public Member Functions

 HTMLSkip ()
 
Status add (unsigned char c)
 
void get_residual (BufferAllocated &buf) const
 
unsigned long n_bytes () const
 

Private Types

enum  State {
  DONE , FAIL , INITIAL , O_OPEN ,
  O_BANG , O_DOCTYPE_D , O_DOCTYPE_O , O_DOCTYPE_C ,
  O_DOCTYPE_T , O_DOCTYPE_Y , O_DOCTYPE_P , O_DOCTYPE_SPACE ,
  O_HTML_H , O_HTML_T , O_HTML_M , CONTENT ,
  C_OPEN , C_SLASH , C_HTML_H , C_HTML_T ,
  C_HTML_M , C_HTML_L , C_CRLF
}
 

Private Attributes

State state
 
BufferAllocated residual
 
unsigned long bytes
 

Detailed Description

Definition at line 31 of file htmlskip.hpp.

Member Enumeration Documentation

◆ State

Enumerator
DONE 
FAIL 
INITIAL 
O_OPEN 
O_BANG 
O_DOCTYPE_D 
O_DOCTYPE_O 
O_DOCTYPE_C 
O_DOCTYPE_T 
O_DOCTYPE_Y 
O_DOCTYPE_P 
O_DOCTYPE_SPACE 
O_HTML_H 
O_HTML_T 
O_HTML_M 
CONTENT 
C_OPEN 
C_SLASH 
C_HTML_H 
C_HTML_T 
C_HTML_M 
C_HTML_L 
C_CRLF 

Definition at line 243 of file htmlskip.hpp.

◆ Status

Enumerator
PENDING 
MATCH 
NOMATCH 

Definition at line 34 of file htmlskip.hpp.

Constructor & Destructor Documentation

◆ HTMLSkip()

openvpn::HTTP::HTMLSkip::HTMLSkip ( )
inline

Definition at line 41 of file htmlskip.hpp.

Member Function Documentation

◆ add()

Status openvpn::HTTP::HTMLSkip::add ( unsigned char  c)
inline

Definition at line 48 of file htmlskip.hpp.

◆ get_residual()

void openvpn::HTTP::HTMLSkip::get_residual ( BufferAllocated buf) const
inline

Definition at line 222 of file htmlskip.hpp.

◆ n_bytes()

unsigned long openvpn::HTTP::HTMLSkip::n_bytes ( ) const
inline

Definition at line 237 of file htmlskip.hpp.

Member Data Documentation

◆ bytes

unsigned long openvpn::HTTP::HTMLSkip::bytes
private

Definition at line 272 of file htmlskip.hpp.

◆ residual

BufferAllocated openvpn::HTTP::HTMLSkip::residual
private

Definition at line 271 of file htmlskip.hpp.

◆ state

State openvpn::HTTP::HTMLSkip::state
private

Definition at line 270 of file htmlskip.hpp.


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