<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>Barry: Barry::PppFilter Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.6.2-20100208 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="namespaceBarry.html">Barry</a>::<a class="el" href="classBarry_1_1PppFilter.html">PppFilter</a> </div> </div> <div class="contents"> <h1>Barry::PppFilter Class Reference</h1><!-- doxytag: class="Barry::PppFilter" --><div class="dynheader"> Collaboration diagram for Barry::PppFilter:</div> <div class="dynsection"> <div class="center"><img src="classBarry_1_1PppFilter__coll__graph.png" border="0" usemap="#Barry_1_1PppFilter_coll__map" alt="Collaboration graph"/></div> <map name="Barry_1_1PppFilter_coll__map" id="Barry_1_1PppFilter_coll__map"> <area shape="rect" id="node2" href="classBarry_1_1Data.html" title="Barry::Data" alt="" coords="17,6,108,37"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classBarry_1_1PppFilter-members.html">List of all members.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classBarry_1_1Data.html">Data</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classBarry_1_1PppFilter.html#a84260626790a60437128f034203902af">Write</a> (const <a class="el" href="classBarry_1_1Data.html">Data</a> &data)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">If PPP mode has not been detected, just return the data buffer. <a href="#a84260626790a60437128f034203902af"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classBarry_1_1Data.html">Data</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classBarry_1_1PppFilter.html#a49bc4e92f47c36991dbc787fb0bd26fa">Write</a> (const <a class="el" href="classBarry_1_1Data.html">Data</a> &data, unsigned int prepend)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Same as Write(data), but makes sure that prepend bytes are available at the beginning of the returned buffer. <a href="#a49bc4e92f47c36991dbc787fb0bd26fa"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Definition at line <a class="el" href="pppfilter_8h_source.html#l00033">33</a> of file <a class="el" href="pppfilter_8h_source.html">pppfilter.h</a>.</p> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a49bc4e92f47c36991dbc787fb0bd26fa"></a><!-- doxytag: member="Barry::PppFilter::Write" ref="a49bc4e92f47c36991dbc787fb0bd26fa" args="(const Data &data, unsigned int prepend)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classBarry_1_1Data.html">Data</a> & Barry::PppFilter::Write </td> <td>(</td> <td class="paramtype">const <a class="el" href="classBarry_1_1Data.html">Data</a> & </td> <td class="paramname"> <em>data</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned int </td> <td class="paramname"> <em>prepend</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Same as Write(data), but makes sure that prepend bytes are available at the beginning of the returned buffer. </p> <p>If not in PPP mode, the extra bytes are still provided. </p> <p>Definition at line <a class="el" href="pppfilter_8cc_source.html#l00116">116</a> of file <a class="el" href="pppfilter_8cc_source.html">pppfilter.cc</a>.</p> </div> </div> <a class="anchor" id="a84260626790a60437128f034203902af"></a><!-- doxytag: member="Barry::PppFilter::Write" ref="a84260626790a60437128f034203902af" args="(const Data &data)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="classBarry_1_1Data.html">Data</a> & Barry::PppFilter::Write </td> <td>(</td> <td class="paramtype">const <a class="el" href="classBarry_1_1Data.html">Data</a> & </td> <td class="paramname"> <em>data</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>If PPP mode has not been detected, just return the data buffer. </p> <p>If in PPP mode, then filter data into internal write buffer, inserting any missing 0x7e characters and return reference to internal write buffer. </p> <p>Definition at line <a class="el" href="pppfilter_8cc_source.html#l00086">86</a> of file <a class="el" href="pppfilter_8cc_source.html">pppfilter.cc</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="pppfilter_8h_source.html">pppfilter.h</a></li> <li><a class="el" href="pppfilter_8cc_source.html">pppfilter.cc</a></li> </ul> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2-20100208 </small></address> </body> </html>