Sophie

Sophie

distrib > Mandriva > cooker > x86_64 > by-pkgid > 8bc91a014960c92a1758363ffa3e1d03 > files > 142

clanlib0.6-docs-0.6.5-39.x86_64.rpm


<html>
<head><title>ClanLib Reference: CL_NetSession</title></head>
<body text=black link=blue vlink=#800080 bgcolor=white topmargin=0 leftmargin=0>
<table border=0 cellspacing=0 cellpadding=0 width=100%><tr><td><img border=0 src="../images/eyeheader-main-purple-a.gif" alt="ClanSoft logo" width=525 height=96></td></tr>
<tr bgcolor=#dadada><td align=left valign=top><img border=0 src="../images/eyeheader-main-purple-b.gif" alt="ClanSoft logo" width=190 height=14></td><td align=right valign=top><img border=0 src="../images/clanlib_light.gif" width=42 height=14></td></tr></table>
<table align=center border=0 cellspacing=10> <tr>
<td><a href="entire_class_index.html">Entire Class Index</a></td>
<td><a href="class_index.html">Main Class Index</a></td>
<td><a href="cross_index.html">Cross Index</a></td>
<td><a href="global_index.html">Global Index</a></td>
</table><h1 align=center>Class CL_NetSession</h1><p>
<b>  CL_NetSession is the interface to communcation with a network session/game.</b><br>
Contained in: <a href="global_index.html">global</a><br>
Derived from:
<i>none</i>
<br>
Derived by:
<i>none</i>
<br>Group: Network (NetSessions)
<p>
#include &lt;ClanLib/network.h&gt;
<p>
<hr noshade>
<table border=0>
<tr><td colspan=3><h3>public function member index:</h3></td>
<tr valign=top><td align=left><h3>Construction:</h3></td>
<tr valign=top><td align=right><tt></tt> </td><td align=right><a href="CL_NetSession.html#2333"><tt><font color=blue><b>CL_NetSession</b></font></tt></a></td><td><tt>(<tt>const</tt> <tt><font color=navy>std::string</font></tt>& <tt><font color=blue>app_id</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>port</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt></tt> </td><td align=right><a href="CL_NetSession.html#2334"><tt><font color=blue><b>CL_NetSession</b></font></tt></a></td><td><tt>(<tt>const</tt> <tt><font color=navy>std::string</font></tt>& <tt><font color=blue>app_id</font></tt>, <tt>const</tt> <tt><font color=navy>std::string</font></tt>& <tt><font color=blue>hostname</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>port</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt></tt> </td><td align=right><a href="CL_NetSession.html#2335"><tt><font color=blue><b>CL_NetSession</b></font></tt></a></td><td><tt>(<tt>const</tt> <tt><font color=navy>CL_ServerInfo</font></tt>& <tt><font color=blue>server</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt></tt> </td><td align=right><a href="CL_NetSession.html#2336"><tt><font color=blue><b>CL_NetSession</b></font></tt></a></td><td><tt>(<tt>const</tt> <a href="CL_NetSession.html#2360"><tt><font color=blue><b>CL_NetSession</b></font></tt></a>& <tt><font color=blue>copy</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> </tt> </td><td align=right><a href="CL_NetSession.html#2337"><tt><font color=blue><b>~CL_NetSession</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=left><h3>Attributes:</h3></td>
<tr valign=top><td align=right><tt><a href="CL_EventTrigger.html"><tt><font color=navy><b>CL_EventTrigger</b></font></tt></a>*</tt> </td><td align=right><a href="CL_NetSession.html#2338"><tt><font color=blue><b>get_trigger</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><a href="CL_NetComputer.html"><tt><font color=navy><b>CL_NetComputer</b></font></tt></a>&</tt> </td><td align=right><a href="CL_NetSession.html#2339"><tt><font color=blue><b>get_server</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><a href="CL_NetGroup.html"><tt><font color=navy><b>CL_NetGroup</b></font></tt></a>&</tt> </td><td align=right><a href="CL_NetSession.html#2340"><tt><font color=blue><b>get_all</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>bool</font></tt></tt> </td><td align=right><a href="CL_NetSession.html#2341"><tt><font color=blue><b>peek</b></font></tt></a></td><td><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>channel</font></tt>) <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>int</font></tt></tt> </td><td align=right><a href="CL_NetSession.html#2342"><tt><font color=blue><b>access_status</b></font></tt></a></td><td><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>channel</font></tt>) <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>bool</font></tt></tt> </td><td align=right><a href="CL_NetSession.html#2343"><tt><font color=blue><b>is_writable</b></font></tt></a></td><td><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>channel</font></tt>) <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>bool</font></tt></tt> </td><td align=right><a href="CL_NetSession.html#2344"><tt><font color=blue><b>is_readable</b></font></tt></a></td><td><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>channel</font></tt>) <tt>const</tt></tt>;</td>
<tr valign=top><td align=left><h3>Operations:</h3></td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_NetSession.html#2345"><tt><font color=black><b>operator</b></font></tt><tt> =</tt></a></td><td><tt>(<tt>const</tt> <a href="CL_NetSession.html#2360"><tt><font color=blue><b>CL_NetSession</b></font></tt></a>& <tt><font color=blue>session</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><a href="CL_NetMessage.html"><tt><font color=navy><b>CL_NetMessage</b></font></tt></a></tt> </td><td align=right><a href="CL_NetSession.html#2346"><tt><font color=blue><b>receive</b></font></tt></a></td><td><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>channel</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>timeout</font></tt> = -1)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_NetSession.html#2347"><tt><font color=blue><b>send</b></font></tt></a></td><td><tt>(<tt>const</tt> <tt><font color=purple>int</font></tt> <tt><font color=blue>dest_channel</font></tt>, <tt>const</tt> <a href="CL_NetGroup.html"><tt><font color=navy><b>CL_NetGroup</b></font></tt></a>& <tt><font color=blue>dest</font></tt>, <tt>const</tt> <a href="CL_NetMessage.html"><tt><font color=navy><b>CL_NetMessage</b></font></tt></a>& <tt><font color=blue>message</font></tt>, <tt><font color=purple>bool</font></tt> <tt><font color=blue>reliable</font></tt> = true)</tt>;</td>
<tr valign=top><td align=right><tt><a href="CL_NetComputer.html"><tt><font color=navy><b>CL_NetComputer</b></font></tt></a></tt> </td><td align=right><a href="CL_NetSession.html#2348"><tt><font color=blue><b>receive_computer_leave</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><a href="CL_NetComputer.html"><tt><font color=navy><b>CL_NetComputer</b></font></tt></a></tt> </td><td align=right><a href="CL_NetSession.html#2349"><tt><font color=blue><b>receive_computer_join</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><a href="CL_NetComputer.html"><tt><font color=navy><b>CL_NetComputer</b></font></tt></a></tt> </td><td align=right><a href="CL_NetSession.html#2350"><tt><font color=blue><b>receive_computer_rejoin</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>bool</font></tt></tt> </td><td align=right><a href="CL_NetSession.html#2351"><tt><font color=blue><b>receive_session_closed</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>int</font></tt></tt> </td><td align=right><a href="CL_NetSession.html#2352"><tt><font color=blue><b>receive_access_changed</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="CL_NetSession.html#2353"><tt><font color=blue><b>set_access</b></font></tt></a></td><td><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>channel</font></tt>, <tt>const</tt> <a href="CL_NetGroup.html"><tt><font color=navy><b>CL_NetGroup</b></font></tt></a>& <tt><font color=blue>group</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>access_rights</font></tt> = ACCESS_CHANNEL_READ | ACCESS_CHANNEL_WRITE)</tt>;</td>
<tr valign=top><td align=left><h3>Signals:</h3></td>
<tr valign=top><td align=right><tt><tt><font color=navy>CL_Signal_v2</font></tt><<a href="CL_NetMessage.html"><tt><font color=navy><b>CL_NetMessage</b></font></tt></a>& , <tt><font color=purple>int</font></tt>>&</tt> </td><td align=right><a href="CL_NetSession.html#2354"><tt><font color=blue><b>sig_receive_message_default</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=navy>CL_Signal_v1</font></tt><<a href="CL_NetComputer.html"><tt><font color=navy><b>CL_NetComputer</b></font></tt></a>>&</tt> </td><td align=right><a href="CL_NetSession.html#2355"><tt><font color=blue><b>sig_computer_leave</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=navy>CL_Signal_v1</font></tt><<a href="CL_NetComputer.html"><tt><font color=navy><b>CL_NetComputer</b></font></tt></a>>&</tt> </td><td align=right><a href="CL_NetSession.html#2356"><tt><font color=blue><b>sig_computer_join</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=navy>CL_Signal_v1</font></tt><<a href="CL_NetComputer.html"><tt><font color=navy><b>CL_NetComputer</b></font></tt></a>>&</tt> </td><td align=right><a href="CL_NetSession.html#2357"><tt><font color=blue><b>sig_computer_rejoin</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=navy>CL_Signal_v1</font></tt><<tt><font color=purple>int</font></tt>>&</tt> </td><td align=right><a href="CL_NetSession.html#2358"><tt><font color=blue><b>sig_access_changed</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><a href="CL_Signal_v0.html"><tt><font color=navy><b>CL_Signal_v0</b></font></tt></a>&</tt> </td><td align=right><a href="CL_NetSession.html#2359"><tt><font color=blue><b>sig_session_closed</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=left><h3>Implementation:</h3></td>
<tr valign=top><td align=right><tt></tt> </td><td align=right><a href="CL_NetSession.html#2360"><tt><font color=blue><b>CL_NetSession</b></font></tt></a></td><td><tt>(<tt><font color=navy>class</font></tt> <tt><font color=blue>CL_NetSession_Generic</font></tt>* <tt><font color=blue>impl</font></tt>)</tt>;</td>
<tr><td>&nbsp;</td></table>
<hr noshade>
<h2>Description:</h2>
<p>
<hr noshade>
<h2>Function Member Descriptions:</h2>
<a name="2333"><font size=+1><b>CL_NetSession::CL_NetSession</b></font></a> -   Create a netsession server on the specified port. Only netsession clients  with same application ID will be able to connect to the server.<br><tt></tt> <a href="CL_NetSession.html#2333"><tt><font color=blue><b>CL_NetSession</b></font></tt></a><tt>(<tt>const</tt> <tt><font color=navy>std::string</font></tt>& <tt><font color=blue>app_id</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>port</font></tt>)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2334"><font size=+1><b>CL_NetSession::CL_NetSession</b></font></a> -   Create a netsession client and connect to a server.<br><tt></tt> <a href="CL_NetSession.html#2334"><tt><font color=blue><b>CL_NetSession</b></font></tt></a><tt>(<tt>const</tt> <tt><font color=navy>std::string</font></tt>& <tt><font color=blue>app_id</font></tt>, <tt>const</tt> <tt><font color=navy>std::string</font></tt>& <tt><font color=blue>hostname</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>port</font></tt>)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2335"><font size=+1><b>CL_NetSession::CL_NetSession</b></font></a> -   Connect to a server coming from a server info structure. Usually used together  with master browse servers and LAN broadcast browsing.<br><tt></tt> <a href="CL_NetSession.html#2335"><tt><font color=blue><b>CL_NetSession</b></font></tt></a><tt>(<tt>const</tt> <tt><font color=navy>CL_ServerInfo</font></tt>& <tt><font color=blue>server</font></tt>)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2336"><font size=+1><b>CL_NetSession::CL_NetSession</b></font></a> -   Copy constructor.<br><tt></tt> <a href="CL_NetSession.html#2336"><tt><font color=blue><b>CL_NetSession</b></font></tt></a><tt>(<tt>const</tt> <a href="CL_NetSession.html#2360"><tt><font color=blue><b>CL_NetSession</b></font></tt></a>& <tt><font color=blue>copy</font></tt>)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2342"><font size=+1><b>CL_NetSession::access_status</b></font></a> -   Returns the access status flags on the channel.<br><tt><tt><font color=purple>int</font></tt></tt> <a href="CL_NetSession.html#2342"><tt><font color=blue><b>access_status</b></font></tt></a><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>channel</font></tt>) <tt>const</tt></tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2340"><font size=+1><b>CL_NetSession::get_all</b></font></a> -   A group of all the computers in the netsession.<br><tt><a href="CL_NetGroup.html"><tt><font color=navy><b>CL_NetGroup</b></font></tt></a>&</tt> <a href="CL_NetSession.html#2340"><tt><font color=blue><b>get_all</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2339"><font size=+1><b>CL_NetSession::get_server</b></font></a> -   The server of the network game.<br><tt><a href="CL_NetComputer.html"><tt><font color=navy><b>CL_NetComputer</b></font></tt></a>&</tt> <a href="CL_NetSession.html#2339"><tt><font color=blue><b>get_server</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2338"><font size=+1><b>CL_NetSession::get_trigger</b></font></a> -   Event trigger that triggers when the netsession object changes (on incoming data).<br><tt><a href="CL_EventTrigger.html"><tt><font color=navy><b>CL_EventTrigger</b></font></tt></a>*</tt> <a href="CL_NetSession.html#2338"><tt><font color=blue><b>get_trigger</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2344"><font size=+1><b>CL_NetSession::is_readable</b></font></a> -   Returns true if the ACCESS_CHANNEL_READ flag is set on channel.<br><tt><tt><font color=purple>bool</font></tt></tt> <a href="CL_NetSession.html#2344"><tt><font color=blue><b>is_readable</b></font></tt></a><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>channel</font></tt>) <tt>const</tt></tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2343"><font size=+1><b>CL_NetSession::is_writable</b></font></a> -   Returns true if the ACCESS_CHANNEL_WRITE flag is set on channel.<br><tt><tt><font color=purple>bool</font></tt></tt> <a href="CL_NetSession.html#2343"><tt><font color=blue><b>is_writable</b></font></tt></a><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>channel</font></tt>) <tt>const</tt></tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2345"><font size=+1><b>CL_NetSession::operator =</b></font></a> -   Makes a copy of the current session. Since sessions are reference counted,  this just means you will have two handles for the same session.<br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_NetSession.html#2345"><tt><font color=black><b>operator</b></font></tt><tt> =</tt></a><tt>(<tt>const</tt> <a href="CL_NetSession.html#2360"><tt><font color=blue><b>CL_NetSession</b></font></tt></a>& <tt><font color=blue>session</font></tt>)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2341"><font size=+1><b>CL_NetSession::peek</b></font></a> -   Returns true if a message is available on the specified channel.<br><tt><tt><font color=purple>bool</font></tt></tt> <a href="CL_NetSession.html#2341"><tt><font color=blue><b>peek</b></font></tt></a><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>channel</font></tt>) <tt>const</tt></tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2346"><font size=+1><b>CL_NetSession::receive</b></font></a> -   Receives a message from the specified channel. The call is blocking, so  don't call it if you aren't completly sure it will arrive (unless you set  a timeout).<br>  Note, if you don't want to poll, use the signals below.<br><tt><a href="CL_NetMessage.html"><tt><font color=navy><b>CL_NetMessage</b></font></tt></a></tt> <a href="CL_NetSession.html#2346"><tt><font color=blue><b>receive</b></font></tt></a><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>channel</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>timeout</font></tt> = -1)</tt>;<br><blockquote>  channel - Channel to look for a message.<br>  timeout - Timeout, -1 means block forever.<br>  Returns - The message received from the specified channel.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2352"><font size=+1><b>CL_NetSession::receive_access_changed</b></font></a> -   Returns the first netchannel that has had its access changed. Returns -1 when no  more channels have had their access changed.<br>  This function only works on a client netsession.<br>  Note, if you don't want to poll, use the signals below.<br><tt><tt><font color=purple>int</font></tt></tt> <a href="CL_NetSession.html#2352"><tt><font color=blue><b>receive_access_changed</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2349"><font size=+1><b>CL_NetSession::receive_computer_join</b></font></a> -   Returns the first (if more) computer that is joining the game, or throws an exception  if none joined. The next time the function is called, it returns the next computer,  etc.<br>  Note, if you don't want to poll, use the signals below.<br><tt><a href="CL_NetComputer.html"><tt><font color=navy><b>CL_NetComputer</b></font></tt></a></tt> <a href="CL_NetSession.html#2349"><tt><font color=blue><b>receive_computer_join</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2348"><font size=+1><b>CL_NetSession::receive_computer_leave</b></font></a> -   Returns the first (if more) computer that has left the game, or NULL if  none. The next time the function is called, it returns the next computer,  etc.<br>  CL_NetComputer instances are reference counted. A computer wont be forgotten  until all instances of it has been destroyed. If a computer rejoins the server  while there still exist a netcomputer instance, it will be recognized and  cause a 'rejoin' event instead of a normal join event.<br>  Note, if you don't want to poll, use the signals below.<br><tt><a href="CL_NetComputer.html"><tt><font color=navy><b>CL_NetComputer</b></font></tt></a></tt> <a href="CL_NetSession.html#2348"><tt><font color=blue><b>receive_computer_leave</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2350"><font size=+1><b>CL_NetSession::receive_computer_rejoin</b></font></a> -   Returns the first (if more) computer that is re-joining the game, or throws an exception  if none joined. The next time the function is called, it returns the next computer,  etc.<br>  A re-joining computer is simply a computer joining the game, that still  havn't had its <a href="CL_NetComputer.html">CL_NetComputer</a> reference deleted. This provides a way to  recognize a computer that was in the game.<br>  Note, if you don't want to poll, use the signals below.<br><tt><a href="CL_NetComputer.html"><tt><font color=navy><b>CL_NetComputer</b></font></tt></a></tt> <a href="CL_NetSession.html#2350"><tt><font color=blue><b>receive_computer_rejoin</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2351"><font size=+1><b>CL_NetSession::receive_session_closed</b></font></a> -   Returns true if the session was closed.<br>  Note, if you don't want to poll, use the signals below.<br><tt><tt><font color=purple>bool</font></tt></tt> <a href="CL_NetSession.html#2351"><tt><font color=blue><b>receive_session_closed</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2347"><font size=+1><b>CL_NetSession::send</b></font></a> -   Sends a message to a group of computers at netchannel 'dest_channel'.<br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_NetSession.html#2347"><tt><font color=blue><b>send</b></font></tt></a><tt>(<tt>const</tt> <tt><font color=purple>int</font></tt> <tt><font color=blue>dest_channel</font></tt>, <tt>const</tt> <a href="CL_NetGroup.html"><tt><font color=navy><b>CL_NetGroup</b></font></tt></a>& <tt><font color=blue>dest</font></tt>, <tt>const</tt> <a href="CL_NetMessage.html"><tt><font color=navy><b>CL_NetMessage</b></font></tt></a>& <tt><font color=blue>message</font></tt>, <tt><font color=purple>bool</font></tt> <tt><font color=blue>reliable</font></tt> = true)</tt>;<br><blockquote>  dest - The group of computers to receive the message.<br>  dest_channel - Netchannel the message is sent to.<br>  message - Data in the message sent. All the data from 'message' is duplicated before this function returns.<br>  reliable - Arrival reliability. True guarantees arrival (use TCP/Pony express), false doesn't (use UDP/US Mail).</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2353"><font size=+1><b>CL_NetSession::set_access</b></font></a> -   Sets the channel access flags on the channel for the computers specified.<br>  This function only has effect on a server netsession.<br><tt><tt><font color=purple>void</font></tt></tt> <a href="CL_NetSession.html#2353"><tt><font color=blue><b>set_access</b></font></tt></a><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>channel</font></tt>, <tt>const</tt> <a href="CL_NetGroup.html"><tt><font color=navy><b>CL_NetGroup</b></font></tt></a>& <tt><font color=blue>group</font></tt>, <tt><font color=purple>int</font></tt> <tt><font color=blue>access_rights</font></tt> = ACCESS_CHANNEL_READ | ACCESS_CHANNEL_WRITE)</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2358"><font size=+1><b>CL_NetSession::sig_access_changed</b></font></a> -   This signal is emitted when a netchannel had its access changed.<br>  This function only works on a client netsession.<br><tt><tt><font color=navy>CL_Signal_v1</font></tt><<tt><font color=purple>int</font></tt>>&</tt> <a href="CL_NetSession.html#2358"><tt><font color=blue><b>sig_access_changed</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2356"><font size=+1><b>CL_NetSession::sig_computer_join</b></font></a> -   This signal is emitted when a computer is joining the game.<br><tt><tt><font color=navy>CL_Signal_v1</font></tt><<a href="CL_NetComputer.html"><tt><font color=navy><b>CL_NetComputer</b></font></tt></a>>&</tt> <a href="CL_NetSession.html#2356"><tt><font color=blue><b>sig_computer_join</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2355"><font size=+1><b>CL_NetSession::sig_computer_leave</b></font></a> -   This signal is emitted when a computer has left the game.<br>  CL_NetComputer instances are reference counted. A computer wont be forgotten  until all instances of it has been destroyed. If a computer rejoins the server  while there still exist a netcomputer instance, it will be recognized and  cause a 'rejoin' event instead of a normal join event.<br><tt><tt><font color=navy>CL_Signal_v1</font></tt><<a href="CL_NetComputer.html"><tt><font color=navy><b>CL_NetComputer</b></font></tt></a>>&</tt> <a href="CL_NetSession.html#2355"><tt><font color=blue><b>sig_computer_leave</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2357"><font size=+1><b>CL_NetSession::sig_computer_rejoin</b></font></a> -   This signal is emitted when a computer is re-joining the game.<br>  A re-joining computer is simply a computer joining the game, that still  havn't had its <a href="CL_NetComputer.html">CL_NetComputer</a> reference deleted. This provides a way to  recognize a computer that was in the game.<br><tt><tt><font color=navy>CL_Signal_v1</font></tt><<a href="CL_NetComputer.html"><tt><font color=navy><b>CL_NetComputer</b></font></tt></a>>&</tt> <a href="CL_NetSession.html#2357"><tt><font color=blue><b>sig_computer_rejoin</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2354"><font size=+1><b>CL_NetSession::sig_receive_message_default</b></font></a> -   This signal is emitted when a message is received, and which  wasn't routed to the sig_receive_message signal.<br><tt><tt><font color=navy>CL_Signal_v2</font></tt><<a href="CL_NetMessage.html"><tt><font color=navy><b>CL_NetMessage</b></font></tt></a>& , <tt><font color=purple>int</font></tt>>&</tt> <a href="CL_NetSession.html#2354"><tt><font color=blue><b>sig_receive_message_default</b></font></tt></a><tt>()</tt>;<br><blockquote>  Returns - CL_NetMessage - The message received from the specified channel.<br>  Returns - int - The channel the message was received in.</blockquote>
<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2359"><font size=+1><b>CL_NetSession::sig_session_closed</b></font></a> -   This signal is emitted when the session was closed.<br><tt><a href="CL_Signal_v0.html"><tt><font color=navy><b>CL_Signal_v0</b></font></tt></a>&</tt> <a href="CL_NetSession.html#2359"><tt><font color=blue><b>sig_session_closed</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<a name="2337"><font size=+1><b>CL_NetSession::~CL_NetSession</b></font></a> -   Net Session destructor<br><tt><tt>virtual</tt> </tt> <a href="CL_NetSession.html#2337"><tt><font color=blue><b>~CL_NetSession</b></font></tt></a><tt>()</tt>;<hr size="1" width="70%" align="left" noshade="noshade"><br><br>
<hr noshade>
<h2>Variable Member Descriptions:</h2>
<hr noshade>
</body>
</html>