<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>GNU CommonC++: ost::TTYSession Class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.4.6 --> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li id="current"><a href="classes.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="examples.html"><span>Examples</span></a></li> </ul></div> <div class="tabs"> <ul> <li><a href="classes.html"><span>Alphabetical List</span></a></li> <li><a href="annotated.html"><span>Class List</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="nav"> <a class="el" href="namespaceost.html">ost</a>::<a class="el" href="classost_1_1_t_t_y_session.html">TTYSession</a></div> <h1>ost::TTYSession Class Reference</h1><!-- doxytag: class="ost::TTYSession" --><!-- doxytag: inherits="ost::Thread,ost::TTYStream" -->The <a class="el" href="classost_1_1_t_t_y_session.html">TTYSession</a> aggragates a <a class="el" href="classost_1_1_t_t_y_stream.html">TTYStream</a> and a Common C++ <a class="el" href="classost_1_1_thread.html">Thread</a> which is assumed to be the execution context that will be used to perform actual I/O operations.This class is very anagolous to <a class="el" href="classost_1_1_t_c_p_session.html">TCPSession</a>. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="serial_8h-source.html">serial.h</a>></code> <p> <p>Inheritance diagram for ost::TTYSession: <p><center><img src="classost_1_1_t_t_y_session.png" usemap="#ost::TTYSession_map" border="0" alt=""></center> <map name="ost::TTYSession_map"> <area href="classost_1_1_thread.html" alt="ost::Thread" shape="rect" coords="0,56,101,80"> <area href="classost_1_1_t_t_y_stream.html" alt="ost::TTYStream" shape="rect" coords="111,56,212,80"> <area href="classost_1_1_serial.html" alt="ost::Serial" shape="rect" coords="111,0,212,24"> </map> <a href="classost_1_1_t_t_y_session-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_t_t_y_session.html#1f849213ff11ab7bba9e764f062be7a8">TTYSession</a> (const char *name, int pri=0, int stack=0)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create TTY stream that will be managed by it's own thread. <a href="#1f849213ff11ab7bba9e764f062be7a8"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_t_t_y_session.html#0f4b704100c32670045e116d967b8977">~TTYSession</a> ()</td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> The <a class="el" href="classost_1_1_t_t_y_session.html">TTYSession</a> aggragates a <a class="el" href="classost_1_1_t_t_y_stream.html">TTYStream</a> and a Common C++ <a class="el" href="classost_1_1_thread.html">Thread</a> which is assumed to be the execution context that will be used to perform actual I/O operations.This class is very anagolous to <a class="el" href="classost_1_1_t_c_p_session.html">TCPSession</a>. <p> This class is very anagolous to <a class="el" href="classost_1_1_t_c_p_session.html">TCPSession</a>.<p> <dl compact><dt><b>Author:</b></dt><dd>David Sugar <<a href="mailto:dyfet@ostel.com">dyfet@ostel.com</a>> </dd></dl> <p> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="1f849213ff11ab7bba9e764f062be7a8"></a><!-- doxytag: member="ost::TTYSession::TTYSession" ref="1f849213ff11ab7bba9e764f062be7a8" args="(const char *name, int pri=0, int stack=0)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">ost::TTYSession::TTYSession </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const char * </td> <td class="mdname" nowrap> <em>name</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>pri</em> = <code>0</code>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>stack</em> = <code>0</code></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Create TTY stream that will be managed by it's own thread. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>of tty device to open. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pri</em> </td><td>execution priority. </td></tr> <tr><td valign="top"></td><td valign="top"><em>stack</em> </td><td>allocation needed on some platforms. </td></tr> </table> </dl> </td> </tr> </table> <a class="anchor" name="0f4b704100c32670045e116d967b8977"></a><!-- doxytag: member="ost::TTYSession::~TTYSession" ref="0f4b704100c32670045e116d967b8977" args="()" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">virtual ost::TTYSession::~TTYSession </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="serial_8h-source.html">serial.h</a></ul> <hr size="1"><address style="align: right;"><small>Generated on Mon Jun 19 10:50:56 2006 for GNU CommonC++ by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> </body> </html>