reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
resip::MsgHeaderScanner Class Reference

#include <MsgHeaderScanner.hxx>

Public Types

enum  { MaxNumCharsChunkOverflow = 5 }
 
enum  TextPropBitMaskEnum {
  tpbmContainsLineBreak = 1 << 0 , tpbmContainsWhitespace = 1 << 1 , tpbmContainsBackslash = 1 << 2 , tpbmContainsPercent = 1 << 3 ,
  tpbmContainsSemicolon = 1 << 4 , tpbmContainsParen = 1 << 5
}
 
enum  ScanChunkResult { scrEnd , scrNextChunk , scrError }
 
typedef unsigned char TextPropBitMask
 

Public Member Functions

unsigned int getHeaderCount () const
 
 MsgHeaderScanner ()
 
void prepareForMessage (SipMessage *msg)
 
void prepareForFrag (SipMessage *msg, bool hasStartLine)
 
MsgHeaderScanner::ScanChunkResult scanChunk (char *chunk, unsigned int chunkLength, char **unprocessedCharPtr)
 

Static Public Member Functions

static char * allocateBuffer (size_t size)
 
static int dumpStateMachine (int fd)
 

Detailed Description

Definition at line 54 of file MsgHeaderScanner.hxx.

Member Typedef Documentation

◆ TextPropBitMask

Definition at line 70 of file MsgHeaderScanner.hxx.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
MaxNumCharsChunkOverflow 

Definition at line 58 of file MsgHeaderScanner.hxx.

◆ ScanChunkResult

Enumerator
scrEnd 
scrNextChunk 
scrError 

Definition at line 105 of file MsgHeaderScanner.hxx.

◆ TextPropBitMaskEnum

Enumerator
tpbmContainsLineBreak 
tpbmContainsWhitespace 
tpbmContainsBackslash 
tpbmContainsPercent 
tpbmContainsSemicolon 
tpbmContainsParen 

Definition at line 61 of file MsgHeaderScanner.hxx.

Constructor & Destructor Documentation

◆ MsgHeaderScanner()

resip::MsgHeaderScanner::MsgHeaderScanner ( )

Definition at line 881 of file MsgHeaderScanner.cxx.

Member Function Documentation

◆ allocateBuffer()

char * resip::MsgHeaderScanner::allocateBuffer ( size_t  size)
static

Definition at line 46 of file MsgHeaderScanner.cxx.

◆ dumpStateMachine()

static int resip::MsgHeaderScanner::dumpStateMachine ( int  fd)
static

◆ getHeaderCount()

unsigned int resip::MsgHeaderScanner::getHeaderCount ( ) const
inline

Definition at line 72 of file MsgHeaderScanner.hxx.

◆ prepareForFrag()

void resip::MsgHeaderScanner::prepareForFrag ( SipMessage *  msg,
bool  hasStartLine 
)

Definition at line 900 of file MsgHeaderScanner.cxx.

◆ prepareForMessage()

void resip::MsgHeaderScanner::prepareForMessage ( SipMessage *  msg)

Definition at line 891 of file MsgHeaderScanner.cxx.

◆ scanChunk()

MsgHeaderScanner::ScanChunkResult resip::MsgHeaderScanner::scanChunk ( char *  chunk,
unsigned int  chunkLength,
char **  unprocessedCharPtr 
)

Definition at line 916 of file MsgHeaderScanner.cxx.


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