Public Member Functions

Barry::PppFilter Class Reference

Collaboration diagram for Barry::PppFilter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

const DataWrite (const Data &data)
 If PPP mode has not been detected, just return the data buffer.
DataWrite (const Data &data, unsigned int prepend)
 Same as Write(data), but makes sure that prepend bytes are available at the beginning of the returned buffer.

Detailed Description

Definition at line 33 of file pppfilter.h.


Member Function Documentation

Data & Barry::PppFilter::Write ( const Data data,
unsigned int  prepend 
)

Same as Write(data), but makes sure that prepend bytes are available at the beginning of the returned buffer.

If not in PPP mode, the extra bytes are still provided.

Definition at line 116 of file pppfilter.cc.

const Data & Barry::PppFilter::Write ( const Data data  ) 

If PPP mode has not been detected, just return the data buffer.

If in PPP mode, then filter data into internal write buffer, inserting any missing 0x7e characters and return reference to internal write buffer.

Definition at line 86 of file pppfilter.cc.


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