Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > ed376d6842ea322c25405e7c23b3bc12 > files > 669

libcommoncpp-devel-1.8.0-5.1mdv2010.1.i586.rpm

<!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>GNU CommonC++: unix.h Source File</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.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
<h1>unix.h</h1><a href="unix_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Copyright (C) 1999-2005 Open Source Telecom Corporation.</span>
<a name="l00002"></a>00002 <span class="comment">// Copyright (C) 2006-2008 David Sugar, Tycho Softworks.</span>
<a name="l00003"></a>00003 <span class="comment">//</span>
<a name="l00004"></a>00004 <span class="comment">// This program is free software; you can redistribute it and/or modify</span>
<a name="l00005"></a>00005 <span class="comment">// it under the terms of the GNU General Public License as published by</span>
<a name="l00006"></a>00006 <span class="comment">// the Free Software Foundation; either version 2 of the License, or</span>
<a name="l00007"></a>00007 <span class="comment">// (at your option) any later version.</span>
<a name="l00008"></a>00008 <span class="comment">//</span>
<a name="l00009"></a>00009 <span class="comment">// This program is distributed in the hope that it will be useful,</span>
<a name="l00010"></a>00010 <span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00011"></a>00011 <span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00012"></a>00012 <span class="comment">// GNU General Public License for more details.</span>
<a name="l00013"></a>00013 <span class="comment">//</span>
<a name="l00014"></a>00014 <span class="comment">// You should have received a copy of the GNU General Public License</span>
<a name="l00015"></a>00015 <span class="comment">// along with this program; if not, write to the Free Software</span>
<a name="l00016"></a>00016 <span class="comment">// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.</span>
<a name="l00017"></a>00017 <span class="comment">//</span>
<a name="l00018"></a>00018 <span class="comment">// As a special exception, you may use this file as part of a free software</span>
<a name="l00019"></a>00019 <span class="comment">// library without restriction.  Specifically, if other files instantiate</span>
<a name="l00020"></a>00020 <span class="comment">// templates or use macros or inline functions from this file, or you compile</span>
<a name="l00021"></a>00021 <span class="comment">// this file and link it with other files to produce an executable, this</span>
<a name="l00022"></a>00022 <span class="comment">// file does not by itself cause the resulting executable to be covered by</span>
<a name="l00023"></a>00023 <span class="comment">// the GNU General Public License.  This exception does not however</span>
<a name="l00024"></a>00024 <span class="comment">// invalidate any other reasons why the executable file might be covered by</span>
<a name="l00025"></a>00025 <span class="comment">// the GNU General Public License.</span>
<a name="l00026"></a>00026 <span class="comment">//</span>
<a name="l00027"></a>00027 <span class="comment">// This exception applies only to the code released under the name GNU</span>
<a name="l00028"></a>00028 <span class="comment">// Common C++.  If you copy code from other releases into a copy of GNU</span>
<a name="l00029"></a>00029 <span class="comment">// Common C++, as the General Public License permits, the exception does</span>
<a name="l00030"></a>00030 <span class="comment">// not apply to the code that you add in this way.  To avoid misleading</span>
<a name="l00031"></a>00031 <span class="comment">// anyone as to the status of such modified files, you must delete</span>
<a name="l00032"></a>00032 <span class="comment">// this exception notice from them.</span>
<a name="l00033"></a>00033 <span class="comment">//</span>
<a name="l00034"></a>00034 <span class="comment">// If you write modifications of your own for GNU Common C++, it is your choice</span>
<a name="l00035"></a>00035 <span class="comment">// whether to permit this exception to apply to your modifications.</span>
<a name="l00036"></a>00036 <span class="comment">// If you do not wish that, delete this exception notice.</span>
<a name="l00037"></a>00037 <span class="comment">//</span>
<a name="l00038"></a>00038 
<a name="l00044"></a>00044 <span class="preprocessor">#ifndef CCXX_UNIX_H_</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span><span class="preprocessor">#define CCXX_UNIX_H_</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span>
<a name="l00047"></a>00047 <span class="preprocessor">#ifndef CCXX_MISSING_H_</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span><span class="preprocessor">#include &lt;<a class="code" href="missing_8h.html" title="substitute functions which may be missing in target platform libc.">cc++/missing.h</a>&gt;</span>
<a name="l00049"></a>00049 <span class="preprocessor">#endif</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span>
<a name="l00051"></a>00051 <span class="preprocessor">#ifndef CCXX_SOCKET_H_</span>
<a name="l00052"></a>00052 <span class="preprocessor"></span><span class="preprocessor">#include &lt;<a class="code" href="socket_8h.html" title="Network addresses and sockets related classes.">cc++/socket.h</a>&gt;</span>
<a name="l00053"></a>00053 <span class="preprocessor">#endif</span>
<a name="l00054"></a>00054 <span class="preprocessor"></span>
<a name="l00055"></a>00055 <span class="preprocessor">#ifdef  CCXX_NAMESPACES</span>
<a name="l00056"></a>00056 <span class="preprocessor"></span><span class="keyword">namespace </span>ost {
<a name="l00057"></a>00057 <span class="preprocessor">#endif</span>
<a name="l00058"></a>00058 <span class="preprocessor"></span>
<a name="l00059"></a>00059 <span class="preprocessor">#ifndef WIN32</span>
<a name="l00060"></a>00060 <span class="preprocessor"></span>
<a name="l00074"></a><a class="code" href="classost_1_1_unix_socket.html">00074</a>  <span class="keyword">class </span><a class="code" href="classost_1_1_unix_socket.html" title="Unix domain sockets are used for stream based connected sessions between processes...">UnixSocket</a> : <span class="keyword">protected</span> <a class="code" href="classost_1_1_socket.html" title="The Socket is used as the base for all Internet protocol services under Common C++...">Socket</a> {
<a name="l00075"></a>00075  <span class="keyword">protected</span>:
<a name="l00076"></a><a class="code" href="classost_1_1_unix_socket.html#a9d8c3d489c258a33d9fc3fcf2d25e6d9">00076</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classost_1_1_unix_stream.html" title="Unix streams are used to represent Unix domain client connections to a local server...">UnixStream</a>;
<a name="l00077"></a><a class="code" href="classost_1_1_unix_socket.html#a9884a27b35e263e19e4acf2cb06c4071">00077</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classost_1_1_socket_port.html" title="The socket port is an internal class which is attached to and then serviced by a...">SocketPort</a>;
<a name="l00078"></a><a class="code" href="classost_1_1_unix_socket.html#ad61d60ad260c2cbbd0e85b2616e19315">00078</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classost_1_1unixstream.html" title="A more natural C++ &amp;quot;unixstream&amp;quot; class for use by non-threaded applications...">unixstream</a>;
<a name="l00079"></a>00079 
<a name="l00080"></a>00080         <span class="keywordtype">void</span> <a class="code" href="classost_1_1_unix_socket.html#a38e4a88a67d37e1c62594bb7c8d16041">close</a>(<span class="keywordtype">void</span>);
<a name="l00081"></a><a class="code" href="classost_1_1_unix_socket.html#af38b52b046cfe425011e7a0f0ab900cd">00081</a>         <span class="keywordtype">char</span> *<a class="code" href="classost_1_1_unix_socket.html#af38b52b046cfe425011e7a0f0ab900cd">path</a>;
<a name="l00082"></a>00082 
<a name="l00083"></a>00083  <span class="keyword">public</span>:
<a name="l00092"></a>00092         <a class="code" href="classost_1_1_unix_socket.html#ad247697df0e9595edda1811ce2cbda49" title="A Unix domain &amp;quot;server&amp;quot; is created as a Unix domain socket that is bound...">UnixSocket</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* pathname, <span class="keywordtype">int</span> backlog = 5);
<a name="l00093"></a>00093 
<a name="l00097"></a><a class="code" href="classost_1_1_unix_socket.html#adcf40179cedb61960eb7dd4fa4bbd82b">00097</a>         <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classost_1_1_unix_socket.html#adcf40179cedb61960eb7dd4fa4bbd82b" title="Used to wait for pending connection requests.">isPendingConnection</a>(<a class="code" href="thread_8h.html#af412159e5cef839836a5e7b19ee75d1c">timeout_t</a> timeout = <a class="code" href="thread_8h.html#a74f2d4c747bce0b8f7f7c1f48e651876">TIMEOUT_INF</a>) 
<a name="l00098"></a>00098                 {<span class="keywordflow">return</span> <a class="code" href="classost_1_1_socket.html#a8eb84be4b5cc91731c16be4f32f5bf3d" title="Get the status of pending operations.">Socket::isPending</a>(<a class="code" href="classost_1_1_socket.html#a2cb9ccad21fc2f10c23e45cbb99bc6f8af2d41647f208c78eb97fe77196c55ccc">pendingInput</a>, timeout);}
<a name="l00099"></a>00099 
<a name="l00103"></a>00103         <span class="keyword">virtual</span> <a class="code" href="classost_1_1_unix_socket.html#a130c4df2a9f65959eb3df4e92762941a" title="Use base socket handler for ending this socket.">~UnixSocket</a>();
<a name="l00104"></a>00104  };
<a name="l00105"></a>00105 
<a name="l00119"></a><a class="code" href="classost_1_1_unix_stream.html">00119</a>  <span class="keyword">class </span><a class="code" href="classost_1_1_unix_stream.html" title="Unix streams are used to represent Unix domain client connections to a local server...">UnixStream</a> : <span class="keyword">public</span> <a class="code" href="classost_1_1_socket.html" title="The Socket is used as the base for all Internet protocol services under Common C++...">Socket</a>, <span class="keyword">public</span> std::streambuf, <span class="keyword">public</span> std::iostream {
<a name="l00120"></a>00120  <span class="keyword">private</span>:
<a name="l00121"></a>00121         <span class="keywordtype">int</span> doallocate();
<a name="l00122"></a>00122 
<a name="l00123"></a>00123  <span class="keyword">protected</span>:
<a name="l00124"></a><a class="code" href="classost_1_1_unix_stream.html#ae7ec25f34d873ef18fd64d8b0f02cf79">00124</a>         <a class="code" href="thread_8h.html#af412159e5cef839836a5e7b19ee75d1c">timeout_t</a> <a class="code" href="classost_1_1_unix_stream.html#ae7ec25f34d873ef18fd64d8b0f02cf79">timeout</a>;
<a name="l00125"></a><a class="code" href="classost_1_1_unix_stream.html#af46a88a033dff67d8b606462ae3b82ca">00125</a>         <span class="keywordtype">int</span> <a class="code" href="classost_1_1_unix_stream.html#af46a88a033dff67d8b606462ae3b82ca">bufsize</a>;
<a name="l00126"></a><a class="code" href="classost_1_1_unix_stream.html#a9eb647ea64a38e48ab3f2bf850c8ca59">00126</a>         <span class="keywordtype">char</span> *<a class="code" href="classost_1_1_unix_stream.html#aae0c867b6f05f1acb04ddf264a80a0d4">gbuf</a>, *<a class="code" href="classost_1_1_unix_stream.html#a9eb647ea64a38e48ab3f2bf850c8ca59">pbuf</a>;
<a name="l00127"></a>00127 
<a name="l00132"></a>00132         <a class="code" href="classost_1_1_unix_stream.html#ad7716a7585a96013b5617737b3b6ad15" title="The constructor required for &amp;quot;unixstream&amp;quot;, a more C++ style version of...">UnixStream</a>(<span class="keywordtype">bool</span> throwflag = <span class="keyword">true</span>);
<a name="l00133"></a>00133 
<a name="l00140"></a>00140         <span class="keywordtype">void</span> <a class="code" href="classost_1_1_unix_stream.html#a61c6df3222ae19b4fcd3292355a40dad" title="Used to allocate the buffer space needed for iostream operations.">allocate</a>(<span class="keywordtype">int</span> size);
<a name="l00141"></a>00141 
<a name="l00146"></a>00146         <span class="keywordtype">void</span> <a class="code" href="classost_1_1_unix_stream.html#a8e1d91df372138f19b184de24507cd7a" title="Used to terminate the buffer space and cleanup the socket connection.">endStream</a>(<span class="keywordtype">void</span>);
<a name="l00147"></a>00147 
<a name="l00154"></a>00154         <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classost_1_1_unix_stream.html#af3f6b4f669ea0e3dca087824101545ce" title="This streambuf method is used to load the input buffer through the established unix...">underflow</a>(<span class="keywordtype">void</span>);
<a name="l00155"></a>00155 
<a name="l00164"></a>00164         <span class="keywordtype">int</span> <a class="code" href="classost_1_1_unix_stream.html#a264a06acbe32b9af460f6c27fb7d9cf9" title="This streambuf method is used for doing unbuffered reads through the established...">uflow</a>(<span class="keywordtype">void</span>);
<a name="l00165"></a>00165 
<a name="l00173"></a>00173         <span class="keywordtype">int</span> <a class="code" href="classost_1_1_unix_stream.html#af1da2e12a8f72df5210d9508e31da2b3" title="This streambuf method is used to write the output buffer through the established...">overflow</a>(<span class="keywordtype">int</span> ch);
<a name="l00174"></a>00174 
<a name="l00181"></a>00181         <span class="keywordtype">void</span> <a class="code" href="classost_1_1_unix_stream.html#a3077c8e255acdf561438c31010e96fe1" title="Create a Unix domain stream by connecting to a Unix domain socket.">connect</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* pathname, <span class="keywordtype">int</span> size);
<a name="l00182"></a>00182 
<a name="l00190"></a><a class="code" href="classost_1_1_unix_stream.html#a4995485ba6ee8cb82ea680b07bb7f4d5">00190</a>         std::iostream *<a class="code" href="classost_1_1_unix_stream.html#a4995485ba6ee8cb82ea680b07bb7f4d5" title="Used in derived classes to refer to the current object via it&amp;#39;s iostream.">unixstr</a>(<span class="keywordtype">void</span>)
<a name="l00191"></a>00191                 {<span class="keywordflow">return</span> ((std::iostream *)<span class="keyword">this</span>);};
<a name="l00192"></a>00192 
<a name="l00193"></a>00193  <span class="keyword">public</span>:
<a name="l00204"></a>00204         <a class="code" href="classost_1_1_unix_stream.html#ad7716a7585a96013b5617737b3b6ad15" title="The constructor required for &amp;quot;unixstream&amp;quot;, a more C++ style version of...">UnixStream</a>(<a class="code" href="classost_1_1_unix_socket.html" title="Unix domain sockets are used for stream based connected sessions between processes...">UnixSocket</a> &amp;server, <span class="keywordtype">int</span> size = 512, <span class="keywordtype">bool</span> throwflag = <span class="keyword">true</span>, <a class="code" href="thread_8h.html#af412159e5cef839836a5e7b19ee75d1c">timeout_t</a> <a class="code" href="classost_1_1_unix_stream.html#ae7ec25f34d873ef18fd64d8b0f02cf79">timeout</a> = 0);
<a name="l00205"></a>00205 
<a name="l00214"></a>00214         <a class="code" href="classost_1_1_unix_stream.html#ad7716a7585a96013b5617737b3b6ad15" title="The constructor required for &amp;quot;unixstream&amp;quot;, a more C++ style version of...">UnixStream</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* pathname, <span class="keywordtype">int</span> size = 512, <span class="keywordtype">bool</span> throwflag = <span class="keyword">true</span>, <a class="code" href="thread_8h.html#af412159e5cef839836a5e7b19ee75d1c">timeout_t</a> to = 0);
<a name="l00215"></a>00215 
<a name="l00221"></a><a class="code" href="classost_1_1_unix_stream.html#a3a83e5c60400c15691e07cc1572f896e">00221</a>         <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classost_1_1_unix_stream.html#a3a83e5c60400c15691e07cc1572f896e" title="Set the I/O operation timeout for socket I/O operations.">setTimeout</a>(<a class="code" href="thread_8h.html#af412159e5cef839836a5e7b19ee75d1c">timeout_t</a> to)
<a name="l00222"></a>00222                 {<a class="code" href="classost_1_1_unix_stream.html#ae7ec25f34d873ef18fd64d8b0f02cf79">timeout</a> = to;};
<a name="l00223"></a>00223 
<a name="l00230"></a>00230         <a class="code" href="classost_1_1_unix_stream.html#ad7716a7585a96013b5617737b3b6ad15" title="The constructor required for &amp;quot;unixstream&amp;quot;, a more C++ style version of...">UnixStream</a>(<span class="keyword">const</span> <a class="code" href="classost_1_1_unix_stream.html" title="Unix streams are used to represent Unix domain client connections to a local server...">UnixStream</a> &amp;source);
<a name="l00231"></a>00231 
<a name="l00236"></a>00236         <span class="keyword">virtual</span> <a class="code" href="classost_1_1_unix_stream.html#aca8dc404a29b1e82cda4668cf11a16f7" title="Flush and empty all buffers, and then remove the allocated buffers.">~UnixStream</a>();
<a name="l00237"></a>00237 
<a name="l00244"></a>00244         <span class="keywordtype">int</span> <a class="code" href="classost_1_1_unix_stream.html#afb5c9e8757dd646f31ebbc9317dc009c" title="Flushes the stream input and output buffers, writes pending output.">sync</a>(<span class="keywordtype">void</span>);
<a name="l00245"></a>00245 
<a name="l00253"></a>00253         <span class="keywordtype">bool</span> <a class="code" href="classost_1_1_unix_stream.html#a8d15a61a6636da4e17651ebb30884183" title="Get the status of pending stream data.">isPending</a>(<a class="code" href="classost_1_1_socket.html#a2cb9ccad21fc2f10c23e45cbb99bc6f8">Pending</a> pend, <a class="code" href="thread_8h.html#af412159e5cef839836a5e7b19ee75d1c">timeout_t</a> <a class="code" href="classost_1_1_unix_stream.html#ae7ec25f34d873ef18fd64d8b0f02cf79">timeout</a> = <a class="code" href="thread_8h.html#a74f2d4c747bce0b8f7f7c1f48e651876">TIMEOUT_INF</a>);
<a name="l00254"></a>00254 
<a name="l00260"></a><a class="code" href="classost_1_1_unix_stream.html#a47ee3a02e54d02259e2073f616b315b6">00260</a>         <span class="keywordtype">int</span> <a class="code" href="classost_1_1_unix_stream.html#a47ee3a02e54d02259e2073f616b315b6" title="Return the size of the current stream buffering used.">getBufferSize</a>(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00261"></a>00261 <span class="keyword">                </span>{<span class="keywordflow">return</span> <a class="code" href="classost_1_1_unix_stream.html#af46a88a033dff67d8b606462ae3b82ca">bufsize</a>;};
<a name="l00262"></a>00262  };
<a name="l00263"></a>00263 
<a name="l00272"></a><a class="code" href="classost_1_1unixstream.html">00272</a>  <span class="keyword">class </span><a class="code" href="classost_1_1unixstream.html" title="A more natural C++ &amp;quot;unixstream&amp;quot; class for use by non-threaded applications...">unixstream</a> : <span class="keyword">public</span> <a class="code" href="classost_1_1_unix_stream.html" title="Unix streams are used to represent Unix domain client connections to a local server...">UnixStream</a> {
<a name="l00273"></a>00273  <span class="keyword">public</span>:
<a name="l00277"></a>00277         <a class="code" href="classost_1_1unixstream.html#a19250bd6a03d44a24acbb72b395e733c" title="Construct an unopened &amp;quot;tcpstream&amp;quot; object.">unixstream</a>();
<a name="l00278"></a>00278 
<a name="l00286"></a>00286         <a class="code" href="classost_1_1unixstream.html#a19250bd6a03d44a24acbb72b395e733c" title="Construct an unopened &amp;quot;tcpstream&amp;quot; object.">unixstream</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *pathname, <span class="keywordtype">int</span> buffer = 512);
<a name="l00287"></a>00287 
<a name="l00295"></a>00295         <a class="code" href="classost_1_1unixstream.html#a19250bd6a03d44a24acbb72b395e733c" title="Construct an unopened &amp;quot;tcpstream&amp;quot; object.">unixstream</a>(<a class="code" href="classost_1_1_unix_socket.html" title="Unix domain sockets are used for stream based connected sessions between processes...">UnixSocket</a> &amp;unixsock, <span class="keywordtype">int</span> buffer = 512);
<a name="l00296"></a>00296 
<a name="l00304"></a><a class="code" href="classost_1_1unixstream.html#a36912330fc233b99b6ea5d6a64a8c5f8">00304</a>         <span class="keywordtype">void</span> <a class="code" href="classost_1_1unixstream.html#a36912330fc233b99b6ea5d6a64a8c5f8" title="Open a tcp stream connection.">open</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *pathname, <span class="keywordtype">int</span> buffer = 512)
<a name="l00305"></a>00305                 { <a class="code" href="classost_1_1_unix_stream.html#a3077c8e255acdf561438c31010e96fe1" title="Create a Unix domain stream by connecting to a Unix domain socket.">UnixStream::connect</a>( pathname, buffer ); }
<a name="l00306"></a>00306 
<a name="l00313"></a>00313         <span class="keywordtype">void</span> <a class="code" href="classost_1_1unixstream.html#a36912330fc233b99b6ea5d6a64a8c5f8" title="Open a tcp stream connection.">open</a>(<a class="code" href="classost_1_1_unix_socket.html" title="Unix domain sockets are used for stream based connected sessions between processes...">UnixSocket</a> &amp;unixsock, <span class="keywordtype">int</span> buffer = 512);
<a name="l00314"></a>00314 
<a name="l00318"></a>00318         <span class="keywordtype">void</span> <a class="code" href="classost_1_1unixstream.html#ac5170d735329b96a75afa7e5164c4340" title="Close the active tcp stream connection.">close</a>(<span class="keywordtype">void</span>);
<a name="l00319"></a>00319 
<a name="l00323"></a>00323         <span class="keywordtype">bool</span> <a class="code" href="classost_1_1unixstream.html#ae2fd7abfaf4da197090ba24f42fa255d" title="Test to see if stream is open.">operator!</a>() <span class="keyword">const</span>;
<a name="l00324"></a>00324  };
<a name="l00325"></a>00325 
<a name="l00336"></a><a class="code" href="classost_1_1_unix_session.html">00336</a>  <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_unix_session.html" title="The Unix domain session is used to primarily to represent a client connection that...">UnixSession</a> : <span class="keyword">public</span> <a class="code" href="classost_1_1_thread.html" title="Every thread of execution in an application is created by instantiating an object...">Thread</a>, <span class="keyword">public</span> <a class="code" href="classost_1_1_unix_stream.html" title="Unix streams are used to represent Unix domain client connections to a local server...">UnixStream</a> {
<a name="l00337"></a>00337  <span class="keyword">protected</span>:
<a name="l00350"></a>00350         <span class="keywordtype">int</span> waitConnection(<a class="code" href="thread_8h.html#af412159e5cef839836a5e7b19ee75d1c">timeout_t</a> timeout = <a class="code" href="thread_8h.html#a74f2d4c747bce0b8f7f7c1f48e651876">TIMEOUT_INF</a>);
<a name="l00351"></a>00351 
<a name="l00358"></a>00358         <span class="keywordtype">void</span> initial(<span class="keywordtype">void</span>);
<a name="l00359"></a>00359 
<a name="l00360"></a>00360  <span class="keyword">public</span>:
<a name="l00370"></a>00370         <a class="code" href="classost_1_1_unix_session.html" title="The Unix domain session is used to primarily to represent a client connection that...">UnixSession</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* pathname, <span class="keywordtype">int</span> size = 512, <span class="keywordtype">int</span> pri = 0, <span class="keywordtype">int</span> stack = 0);
<a name="l00371"></a>00371 
<a name="l00381"></a>00381         <a class="code" href="classost_1_1_unix_session.html" title="The Unix domain session is used to primarily to represent a client connection that...">UnixSession</a>(<a class="code" href="classost_1_1_unix_socket.html" title="Unix domain sockets are used for stream based connected sessions between processes...">UnixSocket</a> &amp;server, <span class="keywordtype">int</span> size = 512,
<a name="l00382"></a>00382                    <span class="keywordtype">int</span> pri = 0, <span class="keywordtype">int</span> stack = 0);
<a name="l00383"></a>00383 
<a name="l00387"></a>00387         <span class="keyword">virtual</span> ~<a class="code" href="classost_1_1_unix_session.html" title="The Unix domain session is used to primarily to represent a client connection that...">UnixSession</a>();
<a name="l00388"></a>00388  };
<a name="l00389"></a>00389 
<a name="l00390"></a>00390 <span class="preprocessor">#endif // ndef WIN32</span>
<a name="l00391"></a>00391 <span class="preprocessor"></span>
<a name="l00392"></a>00392 <span class="preprocessor">#ifdef  CCXX_NAMESPACES</span>
<a name="l00393"></a>00393 <span class="preprocessor"></span>}
<a name="l00394"></a>00394 <span class="preprocessor">#endif</span>
<a name="l00395"></a>00395 <span class="preprocessor"></span>
<a name="l00396"></a>00396 <span class="preprocessor">#endif</span>
<a name="l00397"></a>00397 <span class="preprocessor"></span>
<a name="l00398"></a>00398 
<a name="l00399"></a>00399 
</pre></div></div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Fri Nov 12 09:55:46 2010 for GNU CommonC++ by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>