Barry::PppFilter Class Reference

List of all members.

Detailed Description

Definition at line 33 of file pppfilter.h.

Public Member Functions

 PppFilter ()
bool PppMode () const
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.


Member Function Documentation

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.

References Barry::Data::GetData(), and Barry::Data::GetSize().

Referenced by Barry::Mode::Serial::Write(), and Barry::Mode::IpModem::Write().

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.

References Barry::Data::GetBuffer(), Barry::Data::GetData(), Barry::Data::GetSize(), and Barry::Data::ReleaseBuffer().


The documentation for this class was generated from the following files:
Generated on Wed Sep 24 21:27:33 2008 for Barry by  doxygen 1.5.1