Definition at line 33 of file pppfilter.h.
Public Member Functions | |
PppFilter () | |
bool | PppMode () const |
const Data & | Write (const Data &data) |
If PPP mode has not been detected, just return the data buffer. | |
Data & | 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 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().
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().