diff options
author | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
commit | 0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch) | |
tree | 2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/a02305.html | |
download | nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip |
Initial commit
Diffstat (limited to '')
-rw-r--r-- | docs/doxygen/nel/a02305.html | 3711 |
1 files changed, 3711 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02305.html b/docs/doxygen/nel/a02305.html new file mode 100644 index 00000000..829d4775 --- /dev/null +++ b/docs/doxygen/nel/a02305.html @@ -0,0 +1,3711 @@ +<!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>NeL: NLNET::CCallbackClient class Reference</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.3.6 --> +<div class="qindex"> <form class="search" action="search.php" method="get"> +<a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div> +<h1>NLNET::CCallbackClient Class Reference</h1><code>#include <<a class="el" href="a05525.html">callback_client.h</a>></code> +<p> +<p>Inheritance diagram for NLNET::CCallbackClient: +<p><center><img src="a02305.png" usemap="#NLNET::CCallbackClient_map" border="0" alt=""></center> +<map name="NLNET::CCallbackClient_map"> +<area href="a02306.html" alt="NLNET::CCallbackNetBase" shape="rect" coords="0,56,163,80"> +<area href="a02295.html" alt="NLNET::CBufClient" shape="rect" coords="173,56,336,80"> +<area href="a02296.html" alt="NLNET::CBufNetBase" shape="rect" coords="173,0,336,24"> +</map> +<hr><a name="_details"></a><h2>Detailed Description</h2> +Client class for layer 3 <dl compact><dt><b>Author:</b></dt><dd>Vianney Lecroart, Olivier Cado <p> +Nevrax France </dd></dl> +<dl compact><dt><b>Date:</b></dt><dd>2001 </dd></dl> + +<p> + +<p> +Definition at line <a class="el" href="a05525.html#l00046">46</a> of file <a class="el" href="a05525.html">callback_client.h</a>.<table border=0 cellpadding=0 cellspacing=0> +<tr><td></td></tr> +<tr><td colspan=2><br><h2>Public Types</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>enum </td><td class="memItemRight" valign=bottom><a class="el" href="a02296.html#NLNET_1_1CCallbackServerw7">TEventType</a> { <a class="el" href="a02296.html#NLNET_1_1CCallbackServerw7NLNET_1_1CCallbackServerw10">User</a> = 'U', +<a class="el" href="a02296.html#NLNET_1_1CCallbackServerw7NLNET_1_1CCallbackServerw0">Connection</a> = 'C', +<a class="el" href="a02296.html#NLNET_1_1CCallbackServerw7NLNET_1_1CCallbackServerw1">Disconnection</a> = 'D' + }</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Type of incoming events (max 256). <a href="#NLNET_1_1CCallbackServerw7">More...</a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>enum </td><td class="memItemRight" valign=bottom><a class="el" href="a02306.html#NLNET_1_1CCallbackServerw8">TRecordingState</a> { <a class="el" href="a02306.html#NLNET_1_1CCallbackServerw8NLNET_1_1CCallbackServerw3">Off</a>, +<a class="el" href="a02306.html#NLNET_1_1CCallbackServerw8NLNET_1_1CCallbackServerw4">Record</a>, +<a class="el" href="a02306.html#NLNET_1_1CCallbackServerw8NLNET_1_1CCallbackServerw5">Replay</a> + }</td></tr> + +<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02306.html#NLNET_1_1CCallbackServera0">addCallbackArray</a> (const <a class="el" href="a03900.html">TCallbackItem</a> *callbackarray, <a class="el" href="a03449.html#NLMISC_1_1CStringIdArrayw0">NLMISC::CStringIdArray::TStringId</a> arraysize)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02306.html#NLNET_1_1CCallbackServera1">authorizeOnly</a> (const char *callbackName, <a class="el" href="a02303.html">TSockId</a> hostid=<a class="el" href="a05379.html#a75">InvalidSockId</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a13">uint64</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02295.html#NLNET_1_1CCallbackClienta2">bytesDownloaded</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of bytes downloaded (read or still in the receive buffer) since the latest connection. <a href="#NLNET_1_1CCallbackClienta2"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a13">uint64</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02295.html#NLNET_1_1CCallbackClienta3">bytesUploaded</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of bytes uploaded (flushed) since the latest connection. <a href="#NLNET_1_1CCallbackClienta3"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02305.html#NLNET_1_1CCallbackClienta4">CCallbackClient</a> (<a class="el" href="a02306.html#NLNET_1_1CCallbackServerw8">TRecordingState</a> rec=Off, const std::string &recfilename="", bool recordall=true)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#NLNET_1_1CCallbackClienta4"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02305.html#NLNET_1_1CCallbackClienta5">connect</a> (const <a class="el" href="a02665.html">CInetAddress</a> &<a class="el" href="a04223.html#a657">addr</a>)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Connects to the specified host. <a href="#NLNET_1_1CCallbackClienta5"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02305.html#NLNET_1_1CCallbackClienta6">connected</a> () const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02295.html#NLNET_1_1CCallbackClienta7">disconnect</a> (bool quick=false)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02305.html#NLNET_1_1CCallbackClienta8">disconnect</a> (<a class="el" href="a02303.html">TSockId</a> hostid=<a class="el" href="a05379.html#a75">InvalidSockId</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02306.html#NLNET_1_1CCallbackServera8">displayAllMyAssociations</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02305.html#NLNET_1_1CCallbackClienta10">displayReceiveQueueStat</a> (<a class="el" href="a02813.html">NLMISC::CLog</a> *log=<a class="el" href="a05378.html#a12">NLMISC::InfoLog</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02295.html#NLNET_1_1CCallbackClienta11">displaySendQueueStat</a> (<a class="el" href="a02813.html">NLMISC::CLog</a> *log=<a class="el" href="a05378.html#a12">NLMISC::InfoLog</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02305.html#NLNET_1_1CCallbackClienta12">displaySendQueueStat</a> (<a class="el" href="a02813.html">NLMISC::CLog</a> *log=<a class="el" href="a05378.html#a12">NLMISC::InfoLog</a>, <a class="el" href="a02303.html">TSockId</a> destid=<a class="el" href="a05379.html#a75">InvalidSockId</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02305.html#NLNET_1_1CCallbackClienta13">displayThreadStat</a> (<a class="el" href="a02813.html">NLMISC::CLog</a> *log=<a class="el" href="a05378.html#a12">NLMISC::InfoLog</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02295.html#NLNET_1_1CCallbackClienta14">flush</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02305.html#NLNET_1_1CCallbackClienta15">flush</a> (<a class="el" href="a02303.html">TSockId</a> hostid=<a class="el" href="a05379.html#a75">InvalidSockId</a>)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Force to send all data pending in the send queue. <a href="#NLNET_1_1CCallbackClienta15"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a13">uint64</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02306.html#NLNET_1_1CCallbackServera13">getBytesReceived</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a13">uint64</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02306.html#NLNET_1_1CCallbackServera14">getBytesSent</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a13">uint64</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02305.html#NLNET_1_1CCallbackClienta18">getReceiveQueueSize</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02295.html#NLNET_1_1CCallbackClienta19">getSendQueueSize</a> () const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a13">uint64</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02305.html#NLNET_1_1CCallbackClienta20">getSendQueueSize</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03449.html">NLMISC::CStringIdArray</a> & </td><td class="memItemRight" valign=bottom><a class="el" href="a02306.html#NLNET_1_1CCallbackServera18">getSIDA</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Use this function to get the String ID Array needed when you want to create a message. <a href="#NLNET_1_1CCallbackServera18"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a02303.html">TSockId</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02305.html#NLNET_1_1CCallbackClienta22">getSockId</a> (<a class="el" href="a02303.html">TSockId</a> hostid=<a class="el" href="a05379.html#a75">InvalidSockId</a>)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the sockid. <a href="#NLNET_1_1CCallbackClienta22"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual const <a class="el" href="a02665.html">CInetAddress</a> & </td><td class="memItemRight" valign=bottom><a class="el" href="a02305.html#NLNET_1_1CCallbackClienta23">hostAddress</a> (<a class="el" href="a02303.html">TSockId</a> hostid)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the address of the specified host. <a href="#NLNET_1_1CCallbackClienta23"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02303.html">TSockId</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02295.html#NLNET_1_1CCallbackClienta24">id</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the id of the connection. <a href="#NLNET_1_1CCallbackClienta24"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02306.html#NLNET_1_1CCallbackServera21">ignoreAllUnknownId</a> (bool b)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02306.html#NLNET_1_1CCallbackServera23">isAServer</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns true if this is a <a class="el" href="a02307.html">CCallbackServer</a>. <a href="#NLNET_1_1CCallbackServera23"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02296.html#NLNET_1_1CCallbackServera25">maxExpectedBlockSize</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the max size of the received messages (default: 2^31-1). <a href="#NLNET_1_1CCallbackServera25"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02296.html#NLNET_1_1CCallbackServera26">maxSentBlockSize</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the max size of the sent messages (default: 2^31-1). <a href="#NLNET_1_1CCallbackServera26"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a13">uint64</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02295.html#NLNET_1_1CCallbackClienta29">newBytesDownloaded</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of bytes downloaded since the previous call to this method. <a href="#NLNET_1_1CCallbackClienta29"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a13">uint64</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02295.html#NLNET_1_1CCallbackClienta30">newBytesUploaded</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of bytes uploaded since the previous call to this method. <a href="#NLNET_1_1CCallbackClienta30"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02295.html#NLNET_1_1CCallbackClienta31">receive</a> (<a class="el" href="a02271.html">NLMISC::CMemStream</a> &<a class="el" href="a04223.html#a589">buffer</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a02665.html">CInetAddress</a> & </td><td class="memItemRight" valign=bottom><a class="el" href="a02295.html#NLNET_1_1CCallbackClienta32">remoteAddress</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the address of the remote host. <a href="#NLNET_1_1CCallbackClienta32"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02305.html#NLNET_1_1CCallbackClienta33">send</a> (const <a class="el" href="a02918.html">CMessage</a> &<a class="el" href="a04223.html#a589">buffer</a>, <a class="el" href="a02303.html">TSockId</a> hostid=<a class="el" href="a05379.html#a75">InvalidSockId</a>, bool log=true)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Sends a message to the remote host (the second parameter isn't used). <a href="#NLNET_1_1CCallbackClienta33"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02306.html#NLNET_1_1CCallbackNetBasea20">sendAllMyAssociations</a> (<a class="el" href="a02303.html">TSockId</a> to)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Used by client and server class. <a href="#NLNET_1_1CCallbackNetBasea20"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02306.html#NLNET_1_1CCallbackServera33">setDefaultCallback</a> (<a class="el" href="a05379.html#a83">TMsgCallback</a> defaultCallback)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets default callback for unknown message types. <a href="#NLNET_1_1CCallbackServera33"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02305.html#NLNET_1_1CCallbackClienta36">setDisconnectionCallback</a> (<a class="el" href="a05379.html#a76">TNetCallback</a> cb, void *arg)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets callback for disconnections (or NULL to disable callback). <a href="#NLNET_1_1CCallbackClienta36"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02296.html#NLNET_1_1CCallbackServera35">setMaxExpectedBlockSize</a> (<a class="el" href="a04558.html#a10">sint32</a> limit)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02296.html#NLNET_1_1CCallbackServera36">setMaxSentBlockSize</a> (<a class="el" href="a04558.html#a10">sint32</a> limit)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02306.html#NLNET_1_1CCallbackServera37">setOtherSideAssociations</a> (const char **associationarray, <a class="el" href="a03449.html#NLMISC_1_1CStringIdArrayw0">NLMISC::CStringIdArray::TStringId</a> arraysize)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02295.html#NLNET_1_1CCallbackClienta40">setSizeFlushTrigger</a> (<a class="el" href="a04558.html#a10">sint32</a> <a class="el" href="a04223.html#a587">size</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02295.html#NLNET_1_1CCallbackClienta41">setTimeFlushTrigger</a> (<a class="el" href="a04558.html#a10">sint32</a> ms)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02295.html#NLNET_1_1CCallbackClienta42">update</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Update the network (call this method evenly). <a href="#NLNET_1_1CCallbackClienta42"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02305.html#NLNET_1_1CCallbackClienta43">update</a> (<a class="el" href="a04558.html#a10">sint32</a> timeout=0)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Updates the network (call this method evenly). <a href="#NLNET_1_1CCallbackClienta43"></a><br><br></td></tr> +<tr><td colspan=2><br><h2>Protected Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void * </td><td class="memItemRight" valign=bottom><a class="el" href="a02296.html#NLNET_1_1CCallbackServerb2">argOfDisconnectionCallback</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the argument of the disconnection callback. <a href="#NLNET_1_1CCallbackServerb2"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02306.html#NLNET_1_1CCallbackServerb3">baseUpdate</a> (<a class="el" href="a04558.html#a10">sint32</a> timeout=0)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Used by client and server class. <a href="#NLNET_1_1CCallbackServerb3"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02306.html#NLNET_1_1CCallbackServerb4">checkThreadId</a> () const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>volatile bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02296.html#NLNET_1_1CCallbackServerb6">dataAvailableFlag</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Return _DataAvailable. <a href="#NLNET_1_1CCallbackServerb6"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a05379.html#a76">TNetCallback</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02296.html#NLNET_1_1CCallbackServerb7">disconnectionCallback</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the disconnection callback. <a href="#NLNET_1_1CCallbackServerb7"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02306.html#NLNET_1_1CCallbackServerb10">processOneMessage</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Read a message from the network and process it. <a href="#NLNET_1_1CCallbackServerb10"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02296.html#NLNET_1_1CCallbackServerb12">pushMessageIntoReceiveQueue</a> (const <a class="el" href="a04558.html#a7">uint8</a> *<a class="el" href="a04223.html#a589">buffer</a>, <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a04223.html#a587">size</a>)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02296.html#NLNET_1_1CCallbackServerb13">pushMessageIntoReceiveQueue</a> (const std::vector< <a class="el" href="a04558.html#a7">uint8</a> > &<a class="el" href="a04223.html#a589">buffer</a>)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Push message into receive queue (mutexed). <a href="#NLNET_1_1CCallbackServerb13"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a05379.html#a78">CSynchronizedFIFO</a> & </td><td class="memItemRight" valign=bottom><a class="el" href="a02296.html#NLNET_1_1CCallbackServerb14">receiveQueue</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Access to the receive queue. <a href="#NLNET_1_1CCallbackServerb14"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02296.html#NLNET_1_1CCallbackServerb16">setDataAvailableFlag</a> (bool da)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets _DataAvailable. <a href="#NLNET_1_1CCallbackServerb16"></a><br><br></td></tr> +<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02991.html">CNonBlockingBufSock</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02295.html#NLNET_1_1CCallbackClientp0">_BufSock</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Send buffer and connection. <a href="#NLNET_1_1CCallbackClientp0"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a13">uint64</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02306.html#NLNET_1_1CCallbackServerp0">_BytesReceived</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a13">uint64</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02306.html#NLNET_1_1CCallbackServerp1">_BytesSent</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector< <a class="el" href="a03900.html">TCallbackItem</a> > </td><td class="memItemRight" valign=bottom><a class="el" href="a02306.html#NLNET_1_1CCallbackServerp2">_CallbackArray</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a05379.html#a83">TMsgCallback</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02306.html#NLNET_1_1CCallbackServerp3">_DefaultCallback</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02306.html#NLNET_1_1CCallbackServerp4">_FirstUpdate</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03449.html">NLMISC::CStringIdArray</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02306.html#NLNET_1_1CCallbackServerp5">_InputSIDA</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02306.html#NLNET_1_1CCallbackServerp6">_IsAServer</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a05379.html#a76">TNetCallback</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02306.html#NLNET_1_1CCallbackServerp7">_NewDisconnectionCallback</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Used by client and server class. <a href="#NLNET_1_1CCallbackServerp7"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02295.html#NLNET_1_1CCallbackClientp9">_NoDelay</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">True when the Nagle algorithm must be disabled (TCP_NODELAY). <a href="#NLNET_1_1CCallbackClientp9"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03449.html">NLMISC::CStringIdArray</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02306.html#NLNET_1_1CCallbackServerp8">_OutputSIDA</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a13">uint64</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02295.html#NLNET_1_1CCallbackClientp11">_PrevBytesDownloaded</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Previous number of bytes downloaded. <a href="#NLNET_1_1CCallbackClientp11"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a13">uint64</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02295.html#NLNET_1_1CCallbackClientp12">_PrevBytesUploaded</a></td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Previous number of bytes uploaded. <a href="#NLNET_1_1CCallbackClientp12"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02306.html#NLNET_1_1CCallbackServerp9">_ThreadId</a></td></tr> + +<tr><td colspan=2><br><h2>Private Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02305.html#NLNET_1_1CCallbackClientd0">dataAvailable</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns true if there are messages to read. <a href="#NLNET_1_1CCallbackClientd0"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02305.html#NLNET_1_1CCallbackClientd1">receive</a> (<a class="el" href="a02918.html">CMessage</a> &<a class="el" href="a04223.html#a589">buffer</a>, <a class="el" href="a02303.html">TSockId</a> *hostid=NULL)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">On this layer, you can't call directly receive, It s the <a class="el" href="a02295.html#NLNET_1_1CCallbackClienta42">update()</a> function that receive and call your callaback. <a href="#NLNET_1_1CCallbackClientd1"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02305.html#NLNET_1_1CCallbackClientd2">send</a> (const <a class="el" href="a02271.html">NLMISC::CMemStream</a> &<a class="el" href="a04223.html#a589">buffer</a>)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">These function is public in the base class and put it private here because user cannot use it in layer 2. <a href="#NLNET_1_1CCallbackClientd2"></a><br><br></td></tr> +<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02305.html#NLNET_1_1CCallbackClientr0">ReceiveNextValue</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02305.html#NLNET_1_1CCallbackClientr1">SendNextValue</a></td></tr> + +<tr><td colspan=2><br><h2>Friends</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>class </td><td class="memItemRight" valign=bottom><a class="el" href="a02295.html#NLNET_1_1CCallbackClientn0">CClientReceiveTask</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>class </td><td class="memItemRight" valign=bottom><a class="el" href="a02296.html#NLNET_1_1CCallbackServern4">NLNET::CBufSock</a></td></tr> + +</table> +<hr><h2>Member Enumeration Documentation</h2> +<a class="anchor" name="NLNET_1_1CCallbackServerw7" doxytag="NLNET::CCallbackClient::TEventType" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> enum <a class="el" href="a02296.html#NLNET_1_1CCallbackServerw7">NLNET::CBufNetBase::TEventType</a><code> [inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Type of incoming events (max 256). +<p> +<dl compact><dt><b>Enumeration values: </b></dt><dd> +<table border=0 cellspacing=2 cellpadding=0> +<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CCallbackServerw7NLNET_1_1CCallbackServerw10" doxytag="User" ></a>User</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CCallbackServerw7NLNET_1_1CCallbackServerw0" doxytag="Connection" ></a>Connection</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CCallbackServerw7NLNET_1_1CCallbackServerw1" doxytag="Disconnection" ></a>Disconnection</em> </td><td> +</td></tr> +</table> +</dl> + +<p> +Definition at line <a class="el" href="a05511.html#l00079">79</a> of file <a class="el" href="a05511.html">buf_net_base.h</a>. +<p> +<div class="fragment"><pre>00079 { <a class="code" href="a02296.html#NLNET_1_1CCallbackServerw7NLNET_1_1CCallbackServerw10">User</a> = <span class="charliteral">'U'</span>, <a class="code" href="a02296.html#NLNET_1_1CCallbackServerw7NLNET_1_1CCallbackServerw0">Connection</a> = <span class="charliteral">'C'</span>, <a class="code" href="a02296.html#NLNET_1_1CCallbackServerw7NLNET_1_1CCallbackServerw1">Disconnection</a> = <span class="charliteral">'D'</span> }; +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServerw8" doxytag="NLNET::CCallbackClient::TRecordingState" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> enum <a class="el" href="a02306.html#NLNET_1_1CCallbackServerw8">NLNET::CCallbackNetBase::TRecordingState</a><code> [inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +<dl compact><dt><b>Enumeration values: </b></dt><dd> +<table border=0 cellspacing=2 cellpadding=0> +<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CCallbackServerw8NLNET_1_1CCallbackServerw3" doxytag="Off" ></a>Off</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CCallbackServerw8NLNET_1_1CCallbackServerw4" doxytag="Record" ></a>Record</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NLNET_1_1CCallbackServerw8NLNET_1_1CCallbackServerw5" doxytag="Replay" ></a>Replay</em> </td><td> +</td></tr> +</table> +</dl> + +<p> +Definition at line <a class="el" href="a05527.html#l00163">163</a> of file <a class="el" href="a05527.html">callback_net_base.h</a>. +<p> +<div class="fragment"><pre>00163 { <a class="code" href="a02306.html#NLNET_1_1CCallbackServerw8NLNET_1_1CCallbackServerw3">Off</a>, <a class="code" href="a02306.html#NLNET_1_1CCallbackServerw8NLNET_1_1CCallbackServerw4">Record</a>, <a class="code" href="a02306.html#NLNET_1_1CCallbackServerw8NLNET_1_1CCallbackServerw5">Replay</a> }; +</pre></div> </td> + </tr> +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="NLNET_1_1CCallbackClienta4" doxytag="NLNET::CCallbackClient::CCallbackClient" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NLNET::CCallbackClient::CCallbackClient </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02306.html#NLNET_1_1CCallbackServerw8">TRecordingState</a> </td> + <td class="mdname" nowrap> <em>rec</em> = Off, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>const std::string & </td> + <td class="mdname" nowrap> <em>recfilename</em> = "", </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>bool </td> + <td class="mdname" nowrap> <em>recordall</em> = true</td> + </tr> + <tr> + <td></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> +Constructor. +<p> + +<p> +Definition at line <a class="el" href="a05524.html#l00059">59</a> of file <a class="el" href="a05524.html">callback_client.cpp</a>. +<p> +References <a class="el" href="a05526.html#l00184">NLNET::CCallbackNetBase::addCallbackArray()</a>, <a class="el" href="a05524.html#l00050">NLNET::ClientMessageAssociationArray</a>, and <a class="el" href="a06468.html#l00176">NLMISC::CStringIdArray::ignoreAllUnknownId()</a>. +<p> +<div class="fragment"><pre>00059 : +00060 <a class="code" href="a02306.html#NLNET_1_1CCallbackNetBaseb1">CCallbackNetBase</a>( rec, recfilename, recordall ), <a class="code" href="a02295.html#NLNET_1_1CBufClienta2">CBufClient</a>( <span class="keyword">true</span>, rec==Replay ), <a class="code" href="a02305.html#NLNET_1_1CCallbackClientr1">SendNextValue</a>(0), <a class="code" href="a02305.html#NLNET_1_1CCallbackClientr0">ReceiveNextValue</a>(0) +00061 { +00062 CBufClient::setDisconnectionCallback (_NewDisconnectionCallback, <span class="keyword">this</span>); +00063 +00064 <span class="comment">// add the callback needed to associate messages with id</span> +00065 <a class="code" href="a02306.html#NLNET_1_1CCallbackServera0">addCallbackArray</a> (ClientMessageAssociationArray, <span class="keyword">sizeof</span> (ClientMessageAssociationArray) / <span class="keyword">sizeof</span> (ClientMessageAssociationArray[0])); +00066 +00067 <a class="code" href="a02306.html#NLNET_1_1CCallbackServerp5">_InputSIDA</a>.<a class="code" href="a03449.html#NLMISC_1_1CStringIdArraya9">ignoreAllUnknownId</a> (<span class="keyword">true</span>); +00068 +00069 <a class="code" href="a02306.html#NLNET_1_1CCallbackServerp6">_IsAServer</a> = <span class="keyword">false</span>; +00070 <a class="code" href="a02306.html#NLNET_1_1CCallbackServerp3">_DefaultCallback</a> = NULL; +00071 } + +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NLNET_1_1CCallbackServera0" doxytag="NLNET::CCallbackClient::addCallbackArray" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CCallbackNetBase::addCallbackArray </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a03900.html">TCallbackItem</a> * </td> + <td class="mdname" nowrap> <em>callbackarray</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a03449.html#NLMISC_1_1CStringIdArrayw0">NLMISC::CStringIdArray::TStringId</a> </td> + <td class="mdname" nowrap> <em>arraysize</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Appends callback array with the specified array. You can add callback only *after* adding the server or the client. <dl compact><dt><b>Parameters:</b></dt><dd> + <table border="0" cellspacing="2" cellpadding="0"> + <tr><td valign=top><em>arraysize</em> </td><td>is the number of callback items.</td></tr> + </table> +</dl> + +<p> +Definition at line <a class="el" href="a05526.html#l00184">184</a> of file <a class="el" href="a05526.html">callback_net_base.cpp</a>. +<p> +References <a class="el" href="a05527.html#l00196">NLNET::CCallbackNetBase::_CallbackArray</a>, <a class="el" href="a05527.html#l00193">NLNET::CCallbackNetBase::_OutputSIDA</a>, <a class="el" href="a06468.html#l00059">NLMISC::CStringIdArray::addString()</a>, <a class="el" href="a05527.html#l00064">NLNET::TCallbackItem::Callback</a>, <a class="el" href="a05526.html#l00533">NLNET::CCallbackNetBase::checkThreadId()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a06468.html#l00142">NLMISC::CStringIdArray::resize()</a>, <a class="el" href="a05981.html#l00104">sint</a>, <a class="el" href="a06468.html#l00148">NLMISC::CStringIdArray::size()</a>, <a class="el" href="a06468.html#l00054">NLMISC::CStringIdArray::TStringId</a>, and <a class="el" href="a05981.html#l00105">uint</a>. +<p> +Referenced by <a class="el" href="a05524.html#l00059">CCallbackClient()</a>, <a class="el" href="a05526.html#l00148">NLNET::CCallbackNetBase::CCallbackNetBase()</a>, <a class="el" href="a06138.html#l00577">NLNET::CPacsClient::connect()</a>, <a class="el" href="a06089.html#l00239">NLNET::CNamingClient::connect()</a>, <a class="el" href="a05958.html#l00063">NLNET::CLoginClient::connectToShard()</a>, <a class="el" href="a06645.html#l00479">NLNET::CUnifiedNetwork::init()</a>, <a class="el" href="a05962.html#l00338">NLNET::CLoginServer::init()</a>, and <a class="el" href="a06650.html#l00280">NLNET::_CUniTime::installServer()</a>. +<p> +<div class="fragment"><pre>00185 { +00186 <a class="code" href="a02306.html#NLNET_1_1CCallbackServerb4">checkThreadId</a> (); +00187 +00188 <span class="comment">// be sure that the 2 array have the same size</span> +00189 <a class="code" href="a04199.html#a6">nlassert</a> (<a class="code" href="a02306.html#NLNET_1_1CCallbackServerp2">_CallbackArray</a>.size () == (<a class="code" href="a04558.html#a15">uint</a>)<a class="code" href="a02306.html#NLNET_1_1CCallbackServerp8">_OutputSIDA</a>.<a class="code" href="a03449.html#NLMISC_1_1CStringIdArraya12">size</a> ()); +00190 +00191 <span class="keywordflow">if</span> (arraysize == 1 && callbackarray[0].Callback == NULL && string(<span class="stringliteral">""</span>) == callbackarray[0].Key) +00192 { +00193 <span class="comment">// it's an empty array, ignore it</span> +00194 <span class="keywordflow">return</span>; +00195 } +00196 +00197 <span class="comment">// resize the array</span> +00198 <a class="code" href="a04558.html#a14">sint</a> oldsize = <a class="code" href="a02306.html#NLNET_1_1CCallbackServerp2">_CallbackArray</a>.size(); +00199 +00200 <a class="code" href="a02306.html#NLNET_1_1CCallbackServerp2">_CallbackArray</a>.resize (oldsize + arraysize); +00201 <a class="code" href="a02306.html#NLNET_1_1CCallbackServerp8">_OutputSIDA</a>.<a class="code" href="a03449.html#NLMISC_1_1CStringIdArraya11">resize</a> (oldsize + arraysize); +00202 +00203 <span class="comment">//TOO MUCH MESSAGE nldebug ("L3NB_CB: Adding %d callback to the array", arraysize);</span> +00204 +00205 <span class="keywordflow">for</span> (<a class="code" href="a04558.html#a14">sint</a> i = 0; i < arraysize; i++) +00206 { +00207 <a class="code" href="a03449.html#NLMISC_1_1CStringIdArrayw0">CStringIdArray::TStringId</a> ni = oldsize + i; +00208 <span class="comment">//TOO MUCH MESSAGE nldebug ("L3NB_CB: Adding callback to message '%s', id '%d'", callbackarray[i].Key, ni);</span> +00209 <span class="comment">// copy callback value</span> +00210 +00211 <a class="code" href="a02306.html#NLNET_1_1CCallbackServerp2">_CallbackArray</a>[ni] = callbackarray[i]; +00212 <span class="comment">// add the string to the string id array</span> +00213 <a class="code" href="a02306.html#NLNET_1_1CCallbackServerp8">_OutputSIDA</a>.<a class="code" href="a03449.html#NLMISC_1_1CStringIdArraya1">addString</a> (callbackarray[i].Key, ni); +00214 +00215 } +00216 <span class="comment">// nldebug ("LNETL3NB_CB: Added %d callback Now, there're %d callback associated with message type", arraysize, _CallbackArray.size ());</span> +00217 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServerb2" doxytag="NLNET::CCallbackClient::argOfDisconnectionCallback" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void* NLNET::CBufNetBase::argOfDisconnectionCallback </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, protected, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Returns the argument of the disconnection callback. +<p> + +<p> +Definition at line <a class="el" href="a05511.html#l00160">160</a> of file <a class="el" href="a05511.html">buf_net_base.h</a>. +<p> +References <a class="el" href="a05511.html#l00220">NLNET::CBufNetBase::_DisconnectionCbArg</a>. +<p> +Referenced by <a class="el" href="a05512.html#l00364">NLNET::CBufServer::dataAvailable()</a>, and <a class="el" href="a05506.html#l00140">NLNET::CBufClient::dataAvailable()</a>. +<p> +<div class="fragment"><pre>00160 { <span class="keywordflow">return</span> _DisconnectionCbArg; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServera1" doxytag="NLNET::CCallbackClient::authorizeOnly" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CCallbackNetBase::authorizeOnly </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const char * </td> + <td class="mdname" nowrap> <em>callbackName</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a02303.html">TSockId</a> </td> + <td class="mdname" nowrap> <em>hostid</em> = <a class="el" href="a05379.html#a75">InvalidSockId</a></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Sets the callback that you want the other side calls. If it didn't call this callback, it will be disconnected If cb is NULL, we authorize *all* callback. On a client, the hostid must be InvalidSockId (or ommited). On a server, you must provide a hostid. +<p> +Definition at line <a class="el" href="a05526.html#l00471">471</a> of file <a class="el" href="a05526.html">callback_net_base.cpp</a>. +<p> +References <a class="el" href="a05514.html#l00329">NLNET::CBufSock::asString()</a>, <a class="el" href="a05515.html#l00070">NLNET::CBufSock::AuthorizedCallback</a>, <a class="el" href="a05526.html#l00533">NLNET::CCallbackNetBase::checkThreadId()</a>, <a class="el" href="a02306.html#NLNET_1_1CCallbackNetBasea15">NLNET::CCallbackNetBase::getSockId()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a05622.html#l00101">nldebug</a>, and <a class="el" href="a05511.html#l00042">NLNET::TSockId</a>. +<p> +Referenced by <a class="el" href="a05962.html#l00181">NLNET::cbShardValidation()</a>, and <a class="el" href="a05962.html#l00230">NLNET::ClientConnection()</a>. +<p> +<div class="fragment"><pre>00472 { +00473 <a class="code" href="a02306.html#NLNET_1_1CCallbackServerb4">checkThreadId</a> (); +00474 +00475 <a class="code" href="a04199.html#a0">nldebug</a> (<span class="stringliteral">"LNETL3NB: authorizeOnly (%s, %s)"</span>, callbackName, hostid->asString().c_str()); +00476 +00477 hostid = <a class="code" href="a02305.html#NLNET_1_1CCallbackClienta22">getSockId</a> (hostid); +00478 +00479 <a class="code" href="a04199.html#a6">nlassert</a> (hostid != InvalidSockId); +00480 +00481 hostid->AuthorizedCallback = (callbackName == NULL)?<span class="stringliteral">""</span>:callbackName; +00482 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServerb3" doxytag="NLNET::CCallbackClient::baseUpdate" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CCallbackNetBase::baseUpdate </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a10">sint32</a> </td> + <td class="mdname1" valign="top" nowrap> <em>timeout</em> = 0 </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [protected, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Used by client and server class. +<p> + +<p> +Definition at line <a class="el" href="a05526.html#l00328">328</a> of file <a class="el" href="a05526.html">callback_net_base.cpp</a>. +<p> +References <a class="el" href="a05527.html#l00202">NLNET::CCallbackNetBase::_FirstUpdate</a>, <a class="el" href="a05527.html#l00188">NLNET::CCallbackNetBase::_InputSIDA</a>, <a class="el" href="a05527.html#l00220">NLNET::CCallbackNetBase::_LastMovedStringArray</a>, <a class="el" href="a05527.html#l00219">NLNET::CCallbackNetBase::_LastUpdateTime</a>, <a class="el" href="a05526.html#l00533">NLNET::CCallbackNetBase::checkThreadId()</a>, <a class="el" href="a05527.html#l00132">NLNET::CCallbackNetBase::dataAvailable()</a>, <a class="el" href="a06468.html#l00160">NLMISC::CStringIdArray::getAskedStringArray()</a>, <a class="el" href="a06468.html#l00154">NLMISC::CStringIdArray::getNeedToAskedStringArray()</a>, <a class="el" href="a05788.html#l00056">H_AUTO</a>, <a class="el" href="a06468.html#l00166">NLMISC::CStringIdArray::moveNeedToAskToAskedStringArray()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a05622.html#l00101">nldebug</a>, <a class="el" href="a05586.html#l00073">NLMISC::nlSleep()</a>, <a class="el" href="a05526.html#l00223">NLNET::CCallbackNetBase::processOneMessage()</a>, <a class="el" href="a02306.html#NLNET_1_1CCallbackNetBasea19">NLNET::CCallbackNetBase::send()</a>, <a class="el" href="a05979.html#l00420">NLMISC::CMemStream::serial()</a>, <a class="el" href="a05981.html#l00099">sint32</a>, <a class="el" href="a05646.html#l00645">size</a>, <a class="el" href="a06468.html#l00054">NLMISC::CStringIdArray::TStringId</a>, and <a class="el" href="a06553.html#l00047">NLMISC::TTime</a>. +<p> +Referenced by <a class="el" href="a05528.html#l00175">NLNET::CCallbackServer::update()</a>, and <a class="el" href="a05524.html#l00162">update()</a>. +<p> +<div class="fragment"><pre>00329 { +00330 <a class="code" href="a04365.html#a4">H_AUTO</a>(L3UpdateCallbackNetBase); +00331 +00332 <a class="code" href="a02306.html#NLNET_1_1CCallbackServerb4">checkThreadId</a> (); +00333 +00334 <span class="comment">// slow down the layer H_AUTO (CCallbackNetBase_baseUpdate);</span> +00335 +00336 <a class="code" href="a04199.html#a6">nlassert</a>( timeout >= -1 ); +00337 <a class="code" href="a05378.html#a242">TTime</a> t0 = CTime::getLocalTime(); +00338 +00339 <span class="comment">//</span> +00340 <span class="comment">// The first time, we init time counters</span> +00341 <span class="comment">//</span> +00342 <span class="keywordflow">if</span> (<a class="code" href="a02306.html#NLNET_1_1CCallbackServerp4">_FirstUpdate</a>) +00343 { +00344 <span class="comment">// nldebug("LNETL3NB: First update()");</span> +00345 <a class="code" href="a02306.html#NLNET_1_1CCallbackServerp4">_FirstUpdate</a> = <span class="keyword">false</span>; +00346 _LastUpdateTime = t0; +00347 _LastMovedStringArray = t0; +00348 } +00349 +00350 <span class="comment">//</span> +00351 <span class="comment">// Every 1 seconds if we have new unknown association, we ask them to the other side</span> +00352 <span class="comment">//</span> +00353 <span class="keywordflow">if</span> (t0 - _LastUpdateTime > 1000) +00354 { +00355 <span class="comment">// nldebug("LNETL3NB: baseUpdate()");</span> +00356 _LastUpdateTime = t0; +00357 +00358 <span class="keyword">const</span> set<string> &sa = <a class="code" href="a02306.html#NLNET_1_1CCallbackServerp5">_InputSIDA</a>.<a class="code" href="a03449.html#NLMISC_1_1CStringIdArraya7">getNeedToAskedStringArray</a> (); +00359 <span class="keywordflow">if</span> (!sa.empty ()) +00360 { +00361 <a class="code" href="a02918.html">CMessage</a> msgout (_InputSIDA, <span class="stringliteral">"AA"</span>); +00362 <span class="comment">//nlassert (sa.size () < 65536); // no size limit anymore</span> +00363 <a class="code" href="a03449.html#NLMISC_1_1CStringIdArrayw0">CStringIdArray::TStringId</a> <a class="code" href="a04223.html#a587">size</a> = sa.size (); +00364 <a class="code" href="a04199.html#a0">nldebug</a> (<span class="stringliteral">"LNETL3NB_ASSOC: I need %d string association, ask them to the other side"</span>, size); +00365 msgout.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (size); +00366 <span class="keywordflow">for</span> (set<string>::iterator it = sa.begin(); it != sa.end(); it++) +00367 { +00368 <a class="code" href="a04199.html#a0">nldebug</a> (<span class="stringliteral">"LNETL3NB_ASSOC: what is the id of '%s'?"</span>, (*it).c_str ()); +00369 string str(*it); +00370 msgout.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (str); +00371 } +00372 <span class="comment">// send the message to the other side</span> +00373 <a class="code" href="a02305.html#NLNET_1_1CCallbackClienta33">send</a> (msgout, 0); +00374 <a class="code" href="a02306.html#NLNET_1_1CCallbackServerp5">_InputSIDA</a>.<a class="code" href="a03449.html#NLMISC_1_1CStringIdArraya10">moveNeedToAskToAskedStringArray</a>(); +00375 _LastMovedStringArray = t0; +00376 } +00377 } +00378 +00379 <span class="comment">//</span> +00380 <span class="comment">// Every 60 seconds if we have not answered association, we ask again to get them!</span> +00381 <span class="comment">//</span> +00382 <span class="keywordflow">if</span> (!<a class="code" href="a02306.html#NLNET_1_1CCallbackServerp5">_InputSIDA</a>.<a class="code" href="a03449.html#NLMISC_1_1CStringIdArraya5">getAskedStringArray</a>().empty() && t0 - _LastMovedStringArray > 60000) +00383 { +00384 <span class="comment">// we didn't have an answer for the association, resend them</span> +00385 <span class="keyword">const</span> set<string> sa = <a class="code" href="a02306.html#NLNET_1_1CCallbackServerp5">_InputSIDA</a>.<a class="code" href="a03449.html#NLMISC_1_1CStringIdArraya5">getAskedStringArray</a> (); +00386 <a class="code" href="a02918.html">CMessage</a> msgout (_InputSIDA, <span class="stringliteral">"AA"</span>); +00387 <span class="comment">//nlassert (sa.size () < 65536); // no size limit anymore</span> +00388 <a class="code" href="a03449.html#NLMISC_1_1CStringIdArrayw0">CStringIdArray::TStringId</a> <a class="code" href="a04223.html#a587">size</a> = sa.size (); +00389 <a class="code" href="a04199.html#a0">nldebug</a> (<span class="stringliteral">"LNETL3NB_ASSOC: client didn't answer my asked association, retry! I need %d string association, ask them to the other side"</span>, size); +00390 msgout.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (size); +00391 <span class="keywordflow">for</span> (set<string>::iterator it = sa.begin(); it != sa.end(); it++) +00392 { +00393 <a class="code" href="a04199.html#a0">nldebug</a> (<span class="stringliteral">"LNETL3NB_ASSOC: what is the id of '%s'?"</span>, (*it).c_str ()); +00394 string str(*it); +00395 msgout.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a> (str); +00396 } +00397 <span class="comment">// sends the message to the other side</span> +00398 <a class="code" href="a02305.html#NLNET_1_1CCallbackClienta33">send</a> (msgout, 0); +00399 _LastMovedStringArray = t0; +00400 } +00401 +00402 <span class="comment">/*</span> +00403 <span class="comment"> * timeout -1 => read one message in the queue or nothing if no message in queue</span> +00404 <span class="comment"> * timeout 0 => read all messages in the queue</span> +00405 <span class="comment"> * timeout other => read all messages in the queue until timeout expired (at least all one time)</span> +00406 <span class="comment"> */</span> +00407 +00408 <span class="keywordtype">bool</span> exit = <span class="keyword">false</span>; +00409 +00410 <span class="keywordflow">while</span> (!exit) +00411 { +00412 <span class="comment">// process all messages in the queue</span> +00413 <span class="keywordflow">while</span> (<a class="code" href="a02305.html#NLNET_1_1CCallbackClientd0">dataAvailable</a> ()) +00414 { +00415 <a class="code" href="a02306.html#NLNET_1_1CCallbackServerb10">processOneMessage</a> (); +00416 <span class="keywordflow">if</span> (timeout == -1) +00417 { +00418 exit = <span class="keyword">true</span>; +00419 <span class="keywordflow">break</span>; +00420 } +00421 } +00422 +00423 <span class="comment">// need to exit?</span> +00424 <span class="keywordflow">if</span> (timeout == 0 || (<a class="code" href="a04558.html#a10">sint32</a>)(CTime::getLocalTime() - t0) > timeout) +00425 { +00426 exit = <span class="keyword">true</span>; +00427 } +00428 <span class="keywordflow">else</span> +00429 { +00430 <span class="comment">// enable multithreading on windows :-/</span> +00431 <span class="comment">// slow down the layer H_AUTO (CCallbackNetBase_baseUpdate_nlSleep);</span> +00432 <a class="code" href="a05378.html#a256">nlSleep</a> (10); +00433 } +00434 } +00435 +00436 <span class="preprocessor">#ifdef USE_MESSAGE_RECORDER</span> +00437 <span class="preprocessor"></span> _MR_UpdateCounter++; +00438 <span class="preprocessor">#endif</span> +00439 <span class="preprocessor"></span> +00440 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClienta2" doxytag="NLNET::CCallbackClient::bytesDownloaded" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a13">uint64</a> NLNET::CBufClient::bytesDownloaded </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Returns the number of bytes downloaded (read or still in the receive buffer) since the latest connection. +<p> + +<p> +Definition at line <a class="el" href="a05507.html#l00172">172</a> of file <a class="el" href="a05507.html">buf_client.h</a>. +<p> +References <a class="el" href="a05507.html#l00206">NLNET::CBufClient::_BufSock</a>, <a class="el" href="a06405.html#l00249">NLNET::CSock::bytesReceived()</a>, <a class="el" href="a05515.html#l00243">NLNET::CBufSock::Sock</a>, and <a class="el" href="a05981.html#l00102">uint64</a>. +<p> +Referenced by <a class="el" href="a05506.html#l00361">NLNET::CBufClient::newBytesDownloaded()</a>. +<p> +<div class="fragment"><pre>00172 { <span class="keywordflow">return</span> <a class="code" href="a02295.html#NLNET_1_1CCallbackClientp0">_BufSock</a>->Sock->bytesReceived(); } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClienta3" doxytag="NLNET::CCallbackClient::bytesUploaded" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a13">uint64</a> NLNET::CBufClient::bytesUploaded </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Returns the number of bytes uploaded (flushed) since the latest connection. +<p> + +<p> +Definition at line <a class="el" href="a05507.html#l00175">175</a> of file <a class="el" href="a05507.html">buf_client.h</a>. +<p> +References <a class="el" href="a05507.html#l00206">NLNET::CBufClient::_BufSock</a>, <a class="el" href="a06405.html#l00252">NLNET::CSock::bytesSent()</a>, <a class="el" href="a05515.html#l00243">NLNET::CBufSock::Sock</a>, and <a class="el" href="a05981.html#l00102">uint64</a>. +<p> +Referenced by <a class="el" href="a05506.html#l00370">NLNET::CBufClient::newBytesUploaded()</a>. +<p> +<div class="fragment"><pre>00175 { <span class="keywordflow">return</span> <a class="code" href="a02295.html#NLNET_1_1CCallbackClientp0">_BufSock</a>->Sock->bytesSent(); } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServerb4" doxytag="NLNET::CCallbackClient::checkThreadId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CCallbackNetBase::checkThreadId </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [protected, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05526.html#l00533">533</a> of file <a class="el" href="a05526.html">callback_net_base.cpp</a>. +<p> +Referenced by <a class="el" href="a05526.html#l00184">NLNET::CCallbackNetBase::addCallbackArray()</a>, <a class="el" href="a05526.html#l00471">NLNET::CCallbackNetBase::authorizeOnly()</a>, <a class="el" href="a05526.html#l00328">NLNET::CCallbackNetBase::baseUpdate()</a>, <a class="el" href="a05524.html#l00286">connect()</a>, <a class="el" href="a05529.html#l00067">NLNET::CCallbackServer::connected()</a>, <a class="el" href="a05525.html#l00069">connected()</a>, <a class="el" href="a05528.html#l00283">NLNET::CCallbackServer::dataAvailable()</a>, <a class="el" href="a05524.html#l00192">dataAvailable()</a>, <a class="el" href="a05528.html#l00246">NLNET::CCallbackServer::disconnect()</a>, <a class="el" href="a05524.html#l00354">disconnect()</a>, <a class="el" href="a05526.html#l00464">NLNET::CCallbackNetBase::displayAllMyAssociations()</a>, <a class="el" href="a05529.html#l00055">NLNET::CCallbackServer::flush()</a>, <a class="el" href="a05524.html#l00134">flush()</a>, <a class="el" href="a05528.html#l00268">NLNET::CCallbackServer::getSockId()</a>, <a class="el" href="a05524.html#l00272">getSockId()</a>, <a class="el" href="a05529.html#l00077">NLNET::CCallbackServer::hostAddress()</a>, <a class="el" href="a05527.html#l00126">NLNET::CCallbackNetBase::isAServer()</a>, <a class="el" href="a05526.html#l00223">NLNET::CCallbackNetBase::processOneMessage()</a>, <a class="el" href="a05528.html#l00205">NLNET::CCallbackServer::receive()</a>, <a class="el" href="a05524.html#l00220">receive()</a>, <a class="el" href="a05528.html#l00124">NLNET::CCallbackServer::send()</a>, <a class="el" href="a05524.html#l00079">send()</a>, <a class="el" href="a05528.html#l00091">NLNET::CCallbackServer::sendAllMyAssociations()</a>, <a class="el" href="a05529.html#l00061">NLNET::CCallbackServer::setConnectionCallback()</a>, <a class="el" href="a05529.html#l00064">NLNET::CCallbackServer::setDisconnectionCallback()</a>, <a class="el" href="a05527.html#l00113">NLNET::CCallbackNetBase::setDisconnectionCallback()</a>, <a class="el" href="a05525.html#l00080">setDisconnectionCallback()</a>, <a class="el" href="a05526.html#l00451">NLNET::CCallbackNetBase::setOtherSideAssociations()</a>, <a class="el" href="a05528.html#l00175">NLNET::CCallbackServer::update()</a>, and <a class="el" href="a05524.html#l00162">update()</a>. +<p> +<div class="fragment"><pre>00534 { +00535 <span class="comment">/* some people use this class in different thread but with a mutex to be sure to have</span> +00536 <span class="comment"> no concurent access</span> +00537 <span class="comment"> if (getThreadId () != _ThreadId)</span> +00538 <span class="comment"> {</span> +00539 <span class="comment"> nlerror ("You try to access to the same CCallbackClient or CCallbackServer with 2 differents thread (%d and %d)", _ThreadId, getThreadId());</span> +00540 <span class="comment"> }</span> +00541 <span class="comment">*/</span> +00542 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClienta5" doxytag="NLNET::CCallbackClient::connect" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CCallbackClient::connect </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a02665.html">CInetAddress</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>addr</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Connects to the specified host. +<p> + +<p> +Reimplemented from <a class="el" href="a02295.html#NLNET_1_1CBufClienta3">NLNET::CBufClient</a>. +<p> +Definition at line <a class="el" href="a05524.html#l00286">286</a> of file <a class="el" href="a05524.html">callback_client.cpp</a>. +<p> +References <a class="el" href="a05646.html#l01127">addr</a>, <a class="el" href="a05526.html#l00533">NLNET::CCallbackNetBase::checkThreadId()</a>, <a class="el" href="a05514.html#l00295">NLNET::CBufSock::connect()</a>, <a class="el" href="a02444.html#NLNET_1_1CUdpSockz2109_0">NLNET::CSock::connected()</a>, <a class="el" href="a05379.html#a225a88">NLNET::Connecting</a>, <a class="el" href="a05379.html#a225a89">NLNET::ConnFailing</a>, <a class="el" href="a05981.html#l00107">NL_I64</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a05622.html#l00135">nlwarning</a>, <a class="el" href="a05979.html#l00420">NLMISC::CMemStream::serial()</a>, <a class="el" href="a05515.html#l00243">NLNET::CBufSock::Sock</a>, and <a class="el" href="a06029.html#l00049">NLNET::TNetworkEvent</a>. +<p> +Referenced by <a class="el" href="a06645.html#l00653">NLNET::CUnifiedNetwork::addService()</a>, <a class="el" href="a06089.html#l00239">NLNET::CNamingClient::connect()</a>, <a class="el" href="a05958.html#l00063">NLNET::CLoginClient::connectToShard()</a>, <a class="el" href="a06098.html#l00097">NLNET::CNetManager::createConnection()</a>, <a class="el" href="a06089.html#l00501">NLNET::CNamingClient::lookupAndConnect()</a>, <a class="el" href="a06094.html#l00075">NLNET::CNetDisplayer::setLogServer()</a>, <a class="el" href="a06645.html#l00857">NLNET::CUnifiedNetwork::update()</a>, and <a class="el" href="a06098.html#l00357">NLNET::CNetManager::update()</a>. +<p> +<div class="fragment"><pre>00287 { +00288 <a class="code" href="a02306.html#NLNET_1_1CCallbackServerb4">checkThreadId</a> (); +00289 +00290 <a class="code" href="a02305.html#NLNET_1_1CCallbackClientr1">SendNextValue</a> = <a class="code" href="a02305.html#NLNET_1_1CCallbackClientr0">ReceiveNextValue</a> = 0; +00291 +00292 <span class="preprocessor">#ifdef USE_MESSAGE_RECORDER</span> +00293 <span class="preprocessor"></span> <span class="keywordflow">if</span> ( _MR_RecordingState != <a class="code" href="a02306.html#NLNET_1_1CCallbackServerw8NLNET_1_1CCallbackServerw5">Replay</a> ) +00294 { +00295 <span class="keywordflow">try</span> +00296 { +00297 <span class="preprocessor">#endif</span> +00298 <span class="preprocessor"></span> +00299 <span class="comment">// Connect</span> +00300 CBufClient::connect( addr ); +00301 +00302 <span class="preprocessor">#ifdef USE_MESSAGE_RECORDER</span> +00303 <span class="preprocessor"></span> <span class="keywordflow">if</span> ( _MR_RecordingState == <a class="code" href="a02306.html#NLNET_1_1CCallbackServerw8NLNET_1_1CCallbackServerw4">Record</a> ) +00304 { +00305 <span class="comment">// Record connection</span> +00306 <a class="code" href="a02918.html">CMessage</a> addrmsg; +00307 addrmsg.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a>( const_cast<CInetAddress&>(addr) ); +00308 _MR_Recorder.recordNext( _MR_UpdateCounter, Connecting, _BufSock, addrmsg ); +00309 } +00310 } +00311 <span class="keywordflow">catch</span> ( ESocketConnectionFailed& ) +00312 { +00313 <span class="keywordflow">if</span> ( _MR_RecordingState == <a class="code" href="a02306.html#NLNET_1_1CCallbackServerw8NLNET_1_1CCallbackServerw4">Record</a> ) +00314 { +00315 <span class="comment">// Record connection</span> +00316 <a class="code" href="a02918.html">CMessage</a> addrmsg; +00317 addrmsg.<a class="code" href="a02271.html#NLNET_1_1CMessagea41">serial</a>( const_cast<CInetAddress&>(addr) ); +00318 _MR_Recorder.recordNext( _MR_UpdateCounter, ConnFailing, _BufSock, addrmsg ); +00319 } +00320 <span class="keywordflow">throw</span>; +00321 } +00322 } +00323 <span class="keywordflow">else</span> +00324 { +00325 <span class="comment">// Check the connection : failure or not</span> +00326 <a class="code" href="a05379.html#a225">TNetworkEvent</a> event = _MR_Recorder.replayConnectionAttempt( addr ); +00327 <span class="keywordflow">switch</span> ( event ) +00328 { +00329 <span class="keywordflow">case</span> <a class="code" href="a05379.html#a225a88">Connecting</a> : +00330 <span class="comment">// Set the remote address</span> +00331 <a class="code" href="a04199.html#a6">nlassert</a>( ! <a class="code" href="a02295.html#NLNET_1_1CCallbackClientp0">_BufSock</a>->Sock->connected() ); +00332 <a class="code" href="a02295.html#NLNET_1_1CCallbackClientp0">_BufSock</a>->connect( addr, _NoDelay, <span class="keyword">true</span> ); +00333 <a class="code" href="a02295.html#NLNET_1_1CCallbackClientp11">_PrevBytesDownloaded</a> = 0; +00334 <a class="code" href="a02295.html#NLNET_1_1CCallbackClientp12">_PrevBytesUploaded</a> = 0; +00335 <span class="comment">/*_PrevBytesReceived = 0;</span> +00336 <span class="comment"> _PrevBytesSent = 0;*/</span> +00337 <span class="keywordflow">break</span>; +00338 <span class="keywordflow">case</span> <a class="code" href="a05379.html#a225a89">ConnFailing</a> : +00339 <span class="keywordflow">throw</span> ESocketConnectionFailed( addr ); +00340 <span class="comment">//break;</span> +00341 <span class="keywordflow">default</span> : +00342 <a class="code" href="a04199.html#a2">nlwarning</a>( <span class="stringliteral">"LNETL3C: No connection event in replay data, at update #%"</span>NL_I64<span class="stringliteral">"u"</span>, _MR_UpdateCounter ); +00343 } +00344 } +00345 <span class="preprocessor">#endif</span> +00346 <span class="preprocessor"></span>} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClienta6" doxytag="NLNET::CCallbackClient::connected" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> virtual bool NLNET::CCallbackClient::connected </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Returns true if the connection is still connected (changed when a disconnection event has reached the front of the receive queue, just before calling the disconnection callback if there is one) +<p> +Reimplemented from <a class="el" href="a02295.html#NLNET_1_1CBufClienta4">NLNET::CBufClient</a>. +<p> +Definition at line <a class="el" href="a05525.html#l00069">69</a> of file <a class="el" href="a05525.html">callback_client.h</a>. +<p> +References <a class="el" href="a05526.html#l00533">NLNET::CCallbackNetBase::checkThreadId()</a>. +<p> +Referenced by <a class="el" href="a06138.html#l00577">NLNET::CPacsClient::connect()</a>, <a class="el" href="a06089.html#l00239">NLNET::CNamingClient::connect()</a>, <a class="el" href="a06095.html#l00062">NLNET::CNetDisplayer::connected()</a>, <a class="el" href="a06090.html#l00079">NLNET::CNamingClient::connected()</a>, <a class="el" href="a05958.html#l00063">NLNET::CLoginClient::connectToShard()</a>, <a class="el" href="a06089.html#l00267">NLNET::CNamingClient::disconnect()</a>, <a class="el" href="a06094.html#l00123">NLNET::CNetDisplayer::doDisplay()</a>, <a class="el" href="a06089.html#l00432">NLNET::CNamingClient::lookup()</a>, <a class="el" href="a06089.html#l00494">NLNET::CNamingClient::lookupAll()</a>, <a class="el" href="a06089.html#l00465">NLNET::CNamingClient::lookupAlternate()</a>, <a class="el" href="a06089.html#l00501">NLNET::CNamingClient::lookupAndConnect()</a>, <a class="el" href="a06089.html#l00411">NLNET::CNamingClient::queryServicePort()</a>, <a class="el" href="a06089.html#l00302">NLNET::CNamingClient::registerService()</a>, <a class="el" href="a06089.html#l00340">NLNET::CNamingClient::registerServiceWithSId()</a>, <a class="el" href="a06089.html#l00373">NLNET::CNamingClient::resendRegisteration()</a>, <a class="el" href="a06094.html#l00075">NLNET::CNetDisplayer::setLogServer()</a>, <a class="el" href="a06089.html#l00398">NLNET::CNamingClient::unregisterAllServices()</a>, <a class="el" href="a06089.html#l00385">NLNET::CNamingClient::unregisterService()</a>, and <a class="el" href="a06089.html#l00536">NLNET::CNamingClient::update()</a>. +<p> +<div class="fragment"><pre>00069 { <a class="code" href="a02306.html#NLNET_1_1CCallbackServerb4">checkThreadId</a> (); <span class="keywordflow">return</span> CBufClient::connected (); } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClientd0" doxytag="NLNET::CCallbackClient::dataAvailable" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NLNET::CCallbackClient::dataAvailable </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> [private]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Returns true if there are messages to read. +<p> + +<p> +Reimplemented from <a class="el" href="a02295.html#NLNET_1_1CBufClienta5">NLNET::CBufClient</a>. +<p> +Definition at line <a class="el" href="a05524.html#l00192">192</a> of file <a class="el" href="a05524.html">callback_client.cpp</a>. +<p> +References <a class="el" href="a05526.html#l00533">NLNET::CCallbackNetBase::checkThreadId()</a>. +<p> +<div class="fragment"><pre>00193 { +00194 <a class="code" href="a02306.html#NLNET_1_1CCallbackServerb4">checkThreadId</a> (); +00195 +00196 <span class="preprocessor">#ifdef USE_MESSAGE_RECORDER</span> +00197 <span class="preprocessor"></span> <span class="keywordflow">if</span> ( _MR_RecordingState != <a class="code" href="a02306.html#NLNET_1_1CCallbackServerw8NLNET_1_1CCallbackServerw5">Replay</a> ) +00198 { +00199 <span class="preprocessor">#endif</span> +00200 <span class="preprocessor"></span> +00201 <span class="comment">// Real dataAvailable()</span> +00202 <span class="keywordflow">return</span> CBufClient::dataAvailable (); +00203 +00204 <span class="preprocessor">#ifdef USE_MESSAGE_RECORDER</span> +00205 <span class="preprocessor"></span> } +00206 <span class="keywordflow">else</span> +00207 { +00208 <span class="comment">// Simulated dataAvailable()</span> +00209 <span class="keywordflow">return</span> CCallbackNetBase::replayDataAvailable(); +00210 } +00211 <span class="preprocessor">#endif</span> +00212 <span class="preprocessor"></span>} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServerb6" doxytag="NLNET::CCallbackClient::dataAvailableFlag" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> volatile bool NLNET::CBufNetBase::dataAvailableFlag </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, protected, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Return _DataAvailable. +<p> + +<p> +Definition at line <a class="el" href="a05511.html#l00206">206</a> of file <a class="el" href="a05511.html">buf_net_base.h</a>. +<p> +References <a class="el" href="a05511.html#l00214">NLNET::CBufNetBase::_DataAvailable</a>. +<p> +Referenced by <a class="el" href="a05512.html#l00364">NLNET::CBufServer::dataAvailable()</a>, and <a class="el" href="a05506.html#l00140">NLNET::CBufClient::dataAvailable()</a>. +<p> +<div class="fragment"><pre>00206 { <span class="keywordflow">return</span> _DataAvailable; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClienta7" doxytag="NLNET::CCallbackClient::disconnect" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CBufClient::disconnect </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">bool </td> + <td class="mdname1" valign="top" nowrap> <em>quick</em> = false </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Disconnects the remote host and empties the receive queue. Before that, flushes pending data to send unless quick is true. The disconnection callback will *not* be called. Do not call if the socket is not connected. +<p> +Definition at line <a class="el" href="a05506.html#l00318">318</a> of file <a class="el" href="a05506.html">buf_client.cpp</a>. +<p> +References <a class="el" href="a05507.html#l00206">NLNET::CBufClient::_BufSock</a>, <a class="el" href="a05511.html#l00056">NLNET::CFifoAccessor</a>, <a class="el" href="a02444.html#NLNET_1_1CUdpSockz2109_0">NLNET::CSock::connected()</a>, <a class="el" href="a05515.html#l00237">NLNET::CBufSock::connectedState()</a>, <a class="el" href="a05514.html#l00315">NLNET::CBufSock::disconnect()</a>, <a class="el" href="a05514.html#l00137">NLNET::CBufSock::flush()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a05515.html#l00040">nlnettrace</a>, <a class="el" href="a05511.html#l00154">NLNET::CBufNetBase::receiveQueue()</a>, <a class="el" href="a05511.html#l00203">NLNET::CBufNetBase::setDataAvailableFlag()</a>, and <a class="el" href="a05515.html#l00243">NLNET::CBufSock::Sock</a>. +<p> +Referenced by <a class="el" href="a05506.html#l00397">NLNET::CBufClient::~CBufClient()</a>. +<p> +<div class="fragment"><pre>00319 { +00320 <a class="code" href="a04092.html#a0">nlnettrace</a>( <span class="stringliteral">"CBufClient::disconnect"</span> ); +00321 +00322 <span class="comment">// Do not allow to disconnect a socket that is not connected</span> +00323 <a class="code" href="a04199.html#a6">nlassert</a>( <a class="code" href="a02295.html#NLNET_1_1CCallbackClientp0">_BufSock</a>->connectedState() ); +00324 +00325 <span class="comment">// When the NS tells us to remove this connection AND the connection has physically</span> +00326 <span class="comment">// disconnected but not yet logically (i.e. disconnection event not processed yet),</span> +00327 <span class="comment">// skip flushing and physical active disconnection</span> +00328 <span class="keywordflow">if</span> ( <a class="code" href="a02295.html#NLNET_1_1CCallbackClientp0">_BufSock</a>->Sock->connected() ) +00329 { +00330 <span class="comment">// Flush sending is asked for</span> +00331 <span class="keywordflow">if</span> ( ! quick ) +00332 { +00333 <a class="code" href="a02295.html#NLNET_1_1CCallbackClientp0">_BufSock</a>->flush(); +00334 } +00335 +00336 <span class="comment">// Disconnect and prevent from advertising the disconnection</span> +00337 <a class="code" href="a02295.html#NLNET_1_1CCallbackClientp0">_BufSock</a>->disconnect( <span class="keyword">false</span> ); +00338 } +00339 +00340 <span class="comment">// Empty the receive queue</span> +00341 { +00342 <a class="code" href="a05379.html#a79">CFifoAccessor</a> recvfifo( &<a class="code" href="a02296.html#NLNET_1_1CCallbackServerb14">receiveQueue</a>() ); +00343 recvfifo.value().clear(); +00344 <a class="code" href="a02296.html#NLNET_1_1CCallbackServerb16">setDataAvailableFlag</a>( <span class="keyword">false</span> ); +00345 } +00346 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClienta8" doxytag="NLNET::CCallbackClient::disconnect" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CCallbackClient::disconnect </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02303.html">TSockId</a> </td> + <td class="mdname1" valign="top" nowrap> <em>hostid</em> = <a class="el" href="a05379.html#a75">InvalidSockId</a> </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> +Disconnect a connection Unlike in <a class="el" href="a02305.html">CCallbackClient</a>, you can call <a class="el" href="a02305.html#NLNET_1_1CCallbackClienta8">disconnect()</a> on a socket that is already disconnected (it will do nothing) +<p> +Reimplemented from <a class="el" href="a02306.html#NLNET_1_1CCallbackNetBasea4">NLNET::CCallbackNetBase</a>. +<p> +Definition at line <a class="el" href="a05524.html#l00354">354</a> of file <a class="el" href="a05524.html">callback_client.cpp</a>. +<p> +References <a class="el" href="a05526.html#l00533">NLNET::CCallbackNetBase::checkThreadId()</a>, <a class="el" href="a05515.html#l00237">NLNET::CBufSock::connectedState()</a>, <a class="el" href="a05379.html#a225a91">NLNET::Disconnecting</a>, <a class="el" href="a05981.html#l00107">NL_I64</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a05622.html#l00135">nlwarning</a>, and <a class="el" href="a05511.html#l00042">NLNET::TSockId</a>. +<p> +Referenced by <a class="el" href="a06138.html#l00071">NLNET::CPacsClient::disconnect()</a>, <a class="el" href="a06089.html#l00267">NLNET::CNamingClient::disconnect()</a>, and <a class="el" href="a06094.html#l00108">NLNET::CNetDisplayer::~CNetDisplayer()</a>. +<p> +<div class="fragment"><pre>00355 { +00356 <a class="code" href="a04199.html#a6">nlassert</a> (hostid == InvalidSockId); <span class="comment">// should always be InvalidSockId on client</span> +00357 <a class="code" href="a02306.html#NLNET_1_1CCallbackServerb4">checkThreadId</a> (); +00358 +00359 <a class="code" href="a02305.html#NLNET_1_1CCallbackClientr1">SendNextValue</a> = <a class="code" href="a02305.html#NLNET_1_1CCallbackClientr0">ReceiveNextValue</a> = 0; +00360 +00361 <span class="comment">// Disconnect only if connected (same as physically connected for the client)</span> +00362 <span class="keywordflow">if</span> ( <a class="code" href="a02295.html#NLNET_1_1CCallbackClientp0">_BufSock</a>->connectedState() ) +00363 { +00364 +00365 <span class="preprocessor">#ifdef USE_MESSAGE_RECORDER</span> +00366 <span class="preprocessor"></span> <span class="keywordflow">if</span> ( _MR_RecordingState != <a class="code" href="a02306.html#NLNET_1_1CCallbackServerw8NLNET_1_1CCallbackServerw5">Replay</a> ) +00367 { +00368 <span class="preprocessor">#endif</span> +00369 <span class="preprocessor"></span> +00370 <span class="comment">// Disconnect</span> +00371 CBufClient::disconnect (); +00372 +00373 <span class="preprocessor">#ifdef USE_MESSAGE_RECORDER</span> +00374 <span class="preprocessor"></span> } +00375 <span class="keywordflow">else</span> +00376 { +00377 <span class="comment">// Read (skip) disconnection in the file</span> +00378 <span class="keywordflow">if</span> ( ! (_MR_Recorder.checkNextOne( _MR_UpdateCounter ) == <a class="code" href="a05379.html#a225a91">Disconnecting</a>) ) +00379 { +00380 <a class="code" href="a04199.html#a2">nlwarning</a>( <span class="stringliteral">"LNETL3C: No disconnection event in the replay data, at update #%"</span>NL_I64<span class="stringliteral">"u"</span>, _MR_UpdateCounter ); +00381 } +00382 } +00383 <span class="comment">// Record or replay disconnection (because disconnect() in the client does not push a disc. event)</span> +00384 noticeDisconnection( _BufSock ); +00385 <span class="preprocessor">#endif</span> +00386 <span class="preprocessor"></span> } +00387 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServerb7" doxytag="NLNET::CCallbackClient::disconnectionCallback" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a05379.html#a76">TNetCallback</a> NLNET::CBufNetBase::disconnectionCallback </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, protected, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Returns the disconnection callback. +<p> + +<p> +Definition at line <a class="el" href="a05511.html#l00157">157</a> of file <a class="el" href="a05511.html">buf_net_base.h</a>. +<p> +References <a class="el" href="a05511.html#l00217">NLNET::CBufNetBase::_DisconnectionCallback</a>, and <a class="el" href="a05511.html#l00047">NLNET::TNetCallback</a>. +<p> +Referenced by <a class="el" href="a05512.html#l00364">NLNET::CBufServer::dataAvailable()</a>, and <a class="el" href="a05506.html#l00140">NLNET::CBufClient::dataAvailable()</a>. +<p> +<div class="fragment"><pre>00157 { <span class="keywordflow">return</span> _DisconnectionCallback; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServera8" doxytag="NLNET::CCallbackClient::displayAllMyAssociations" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CCallbackNetBase::displayAllMyAssociations </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> [inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05526.html#l00464">464</a> of file <a class="el" href="a05526.html">callback_net_base.cpp</a>. +<p> +References <a class="el" href="a05527.html#l00193">NLNET::CCallbackNetBase::_OutputSIDA</a>, <a class="el" href="a05526.html#l00533">NLNET::CCallbackNetBase::checkThreadId()</a>, and <a class="el" href="a06468.html#l00187">NLMISC::CStringIdArray::display()</a>. +<p> +Referenced by <a class="el" href="a05958.html#l00063">NLNET::CLoginClient::connectToShard()</a>. +<p> +<div class="fragment"><pre>00465 { +00466 <a class="code" href="a02306.html#NLNET_1_1CCallbackServerb4">checkThreadId</a> (); +00467 +00468 <a class="code" href="a02306.html#NLNET_1_1CCallbackServerp8">_OutputSIDA</a>.<a class="code" href="a03449.html#NLMISC_1_1CStringIdArraya4">display</a> (); +00469 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClienta10" doxytag="NLNET::CCallbackClient::displayReceiveQueueStat" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CCallbackClient::displayReceiveQueueStat </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02813.html">NLMISC::CLog</a> * </td> + <td class="mdname1" valign="top" nowrap> <em>log</em> = <a class="el" href="a05378.html#a12">NLMISC::InfoLog</a> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Implements <a class="el" href="a02306.html#NLNET_1_1CCallbackNetBasea6">NLNET::CCallbackNetBase</a>. +<p> +Definition at line <a class="el" href="a05525.html#l00088">88</a> of file <a class="el" href="a05525.html">callback_client.h</a>. +<p> +<div class="fragment"><pre>00088 { CBufClient::displayReceiveQueueStat(log); } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClienta11" doxytag="NLNET::CCallbackClient::displaySendQueueStat" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CBufClient::displaySendQueueStat </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02813.html">NLMISC::CLog</a> * </td> + <td class="mdname1" valign="top" nowrap> <em>log</em> = <a class="el" href="a05378.html#a12">NLMISC::InfoLog</a> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05507.html#l00137">137</a> of file <a class="el" href="a05507.html">buf_client.h</a>. +<p> +References <a class="el" href="a05507.html#l00206">NLNET::CBufClient::_BufSock</a>, <a class="el" href="a05508.html#l00528">NLMISC::CBufFIFO::displayStats()</a>, and <a class="el" href="a05515.html#l00240">NLNET::CBufSock::SendFifo</a>. +<p> +<div class="fragment"><pre>00138 { +00139 <a class="code" href="a02295.html#NLNET_1_1CCallbackClientp0">_BufSock</a>->SendFifo.displayStats(log); +00140 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClienta12" doxytag="NLNET::CCallbackClient::displaySendQueueStat" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CCallbackClient::displaySendQueueStat </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02813.html">NLMISC::CLog</a> * </td> + <td class="mdname" nowrap> <em>log</em> = <a class="el" href="a05378.html#a12">NLMISC::InfoLog</a>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a02303.html">TSockId</a> </td> + <td class="mdname" nowrap> <em>destid</em> = <a class="el" href="a05379.html#a75">InvalidSockId</a></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Implements <a class="el" href="a02306.html#NLNET_1_1CCallbackNetBasea7">NLNET::CCallbackNetBase</a>. +<p> +Definition at line <a class="el" href="a05525.html#l00089">89</a> of file <a class="el" href="a05525.html">callback_client.h</a>. +<p> +References <a class="el" href="a05511.html#l00042">NLNET::TSockId</a>. +<p> +<div class="fragment"><pre>00089 { CBufClient::displaySendQueueStat(log); } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClienta13" doxytag="NLNET::CCallbackClient::displayThreadStat" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CCallbackClient::displayThreadStat </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02813.html">NLMISC::CLog</a> * </td> + <td class="mdname1" valign="top" nowrap> <em>log</em> = <a class="el" href="a05378.html#a12">NLMISC::InfoLog</a> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Reimplemented from <a class="el" href="a02295.html#NLNET_1_1CBufClienta9">NLNET::CBufClient</a>. +<p> +Definition at line <a class="el" href="a05525.html#l00091">91</a> of file <a class="el" href="a05525.html">callback_client.h</a>. +<p> +<div class="fragment"><pre>00091 { CBufClient::displayThreadStat(log); } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClienta14" doxytag="NLNET::CCallbackClient::flush" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NLNET::CBufClient::flush </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> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Force to send all data pending in the send queue. <dl compact><dt><b>Returns:</b></dt><dd>False if an error has occured (e.g. the remote host is disconnected). To retrieve the reason of the error, call <a class="el" href="a02444.html#NLNET_1_1CUdpSocke1">CSock::getLastError()</a> and/or <a class="el" href="a02444.html#NLNET_1_1CUdpSocke0">CSock::errorString()</a></dd></dl> + +<p> +Definition at line <a class="el" href="a05507.html#l00158">158</a> of file <a class="el" href="a05507.html">buf_client.h</a>. +<p> +References <a class="el" href="a05507.html#l00206">NLNET::CBufClient::_BufSock</a>, and <a class="el" href="a05514.html#l00137">NLNET::CBufSock::flush()</a>. +<p> +<div class="fragment"><pre>00158 { <span class="keywordflow">return</span> <a class="code" href="a02295.html#NLNET_1_1CCallbackClientp0">_BufSock</a>->flush(); } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClienta15" doxytag="NLNET::CCallbackClient::flush" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NLNET::CCallbackClient::flush </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02303.html">TSockId</a> </td> + <td class="mdname1" valign="top" nowrap> <em>hostid</em> = <a class="el" href="a05379.html#a75">InvalidSockId</a> </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> +Force to send all data pending in the send queue. +<p> + +<p> +Implements <a class="el" href="a02306.html#NLNET_1_1CCallbackNetBasea9">NLNET::CCallbackNetBase</a>. +<p> +Definition at line <a class="el" href="a05524.html#l00134">134</a> of file <a class="el" href="a05524.html">callback_client.cpp</a>. +<p> +References <a class="el" href="a05526.html#l00533">NLNET::CCallbackNetBase::checkThreadId()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, and <a class="el" href="a05511.html#l00042">NLNET::TSockId</a>. +<p> +<div class="fragment"><pre>00135 { +00136 <a class="code" href="a04199.html#a6">nlassert</a> (hostid == InvalidSockId); <span class="comment">// should always be InvalidSockId on client</span> +00137 <a class="code" href="a02306.html#NLNET_1_1CCallbackServerb4">checkThreadId</a> (); +00138 +00139 <span class="preprocessor">#ifdef USE_MESSAGE_RECORDER</span> +00140 <span class="preprocessor"></span> <span class="keywordflow">if</span> ( _MR_RecordingState != <a class="code" href="a02306.html#NLNET_1_1CCallbackServerw8NLNET_1_1CCallbackServerw5">Replay</a> ) +00141 { +00142 <span class="preprocessor">#endif</span> +00143 <span class="preprocessor"></span> +00144 <span class="comment">// Flush sending (nothing to do in replay mode)</span> +00145 <span class="keywordflow">return</span> CBufClient::flush(); +00146 +00147 <span class="preprocessor">#ifdef USE_MESSAGE_RECORDER</span> +00148 <span class="preprocessor"></span> } +00149 <span class="keywordflow">else</span> +00150 { +00151 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00152 } +00153 <span class="preprocessor">#endif</span> +00154 <span class="preprocessor"></span>} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServera13" doxytag="NLNET::CCallbackClient::getBytesReceived" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a13">uint64</a> NLNET::CCallbackNetBase::getBytesReceived </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> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05527.html#l00088">88</a> of file <a class="el" href="a05527.html">callback_net_base.h</a>. +<p> +References <a class="el" href="a05527.html#l00167">NLNET::CCallbackNetBase::_BytesReceived</a>, and <a class="el" href="a05981.html#l00102">uint64</a>. +<p> +Referenced by <a class="el" href="a06645.html#l01263">NLNET::CUnifiedNetwork::getBytesReceived()</a>. +<p> +<div class="fragment"><pre>00088 { <span class="keywordflow">return</span> <a class="code" href="a02306.html#NLNET_1_1CCallbackServerp0">_BytesReceived</a>; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServera14" doxytag="NLNET::CCallbackClient::getBytesSent" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a13">uint64</a> NLNET::CCallbackNetBase::getBytesSent </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> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05527.html#l00087">87</a> of file <a class="el" href="a05527.html">callback_net_base.h</a>. +<p> +References <a class="el" href="a05527.html#l00167">NLNET::CCallbackNetBase::_BytesSent</a>, and <a class="el" href="a05981.html#l00102">uint64</a>. +<p> +Referenced by <a class="el" href="a06645.html#l01239">NLNET::CUnifiedNetwork::getBytesSent()</a>. +<p> +<div class="fragment"><pre>00087 { <span class="keywordflow">return</span> <a class="code" href="a02306.html#NLNET_1_1CCallbackServerp1">_BytesSent</a>; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClienta18" doxytag="NLNET::CCallbackClient::getReceiveQueueSize" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a13">uint64</a> NLNET::CCallbackClient::getReceiveQueueSize </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> [inline, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Implements <a class="el" href="a02306.html#NLNET_1_1CCallbackNetBasea12">NLNET::CCallbackNetBase</a>. +<p> +Definition at line <a class="el" href="a05525.html#l00085">85</a> of file <a class="el" href="a05525.html">callback_client.h</a>. +<p> +References <a class="el" href="a05981.html#l00102">uint64</a>. +<p> +<div class="fragment"><pre>00085 { <span class="keywordflow">return</span> CBufClient::getReceiveQueueSize(); } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClienta19" doxytag="NLNET::CCallbackClient::getSendQueueSize" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a11">uint32</a> NLNET::CBufClient::getSendQueueSize </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05507.html#l00135">135</a> of file <a class="el" href="a05507.html">buf_client.h</a>. +<p> +References <a class="el" href="a05507.html#l00206">NLNET::CBufClient::_BufSock</a>, <a class="el" href="a05515.html#l00240">NLNET::CBufSock::SendFifo</a>, <a class="el" href="a05508.html#l00410">NLMISC::CBufFIFO::size()</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +<div class="fragment"><pre>00135 { <span class="keywordflow">return</span> <a class="code" href="a02295.html#NLNET_1_1CCallbackClientp0">_BufSock</a>->SendFifo.size(); } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClienta20" doxytag="NLNET::CCallbackClient::getSendQueueSize" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a13">uint64</a> NLNET::CCallbackClient::getSendQueueSize </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> [inline, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Implements <a class="el" href="a02306.html#NLNET_1_1CCallbackNetBasea13">NLNET::CCallbackNetBase</a>. +<p> +Definition at line <a class="el" href="a05525.html#l00086">86</a> of file <a class="el" href="a05525.html">callback_client.h</a>. +<p> +References <a class="el" href="a05981.html#l00102">uint64</a>. +<p> +<div class="fragment"><pre>00086 { <span class="keywordflow">return</span> CBufClient::getSendQueueSize(); } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServera18" doxytag="NLNET::CCallbackClient::getSIDA" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a03449.html">NLMISC::CStringIdArray</a>& NLNET::CCallbackNetBase::getSIDA </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> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Use this function to get the String ID Array needed when you want to create a message. +<p> + +<p> +Definition at line <a class="el" href="a05527.html#l00129">129</a> of file <a class="el" href="a05527.html">callback_net_base.h</a>. +<p> +References <a class="el" href="a05527.html#l00188">NLNET::CCallbackNetBase::_InputSIDA</a>. +<p> +Referenced by <a class="el" href="a05524.html#l00043">NLNET::cbcMessageRecvAllAssociations()</a>, <a class="el" href="a05526.html#l00088">NLNET::cbnbMessageAskAssociations()</a>, <a class="el" href="a05526.html#l00055">NLNET::cbnbMessageRecvAssociations()</a>, <a class="el" href="a06650.html#l00262">NLNET::cbServerAskUniversalTime()</a>, <a class="el" href="a05962.html#l00181">NLNET::cbShardValidation()</a>, <a class="el" href="a05958.html#l00063">NLNET::CLoginClient::connectToShard()</a>, <a class="el" href="a06094.html#l00123">NLNET::CNetDisplayer::doDisplay()</a>, <a class="el" href="a06089.html#l00411">NLNET::CNamingClient::queryServicePort()</a>, <a class="el" href="a06089.html#l00302">NLNET::CNamingClient::registerService()</a>, <a class="el" href="a06089.html#l00340">NLNET::CNamingClient::registerServiceWithSId()</a>, <a class="el" href="a06089.html#l00373">NLNET::CNamingClient::resendRegisteration()</a>, <a class="el" href="a05528.html#l00091">NLNET::CCallbackServer::sendAllMyAssociations()</a>, <a class="el" href="a05526.html#l00451">NLNET::CCallbackNetBase::setOtherSideAssociations()</a>, and <a class="el" href="a06089.html#l00385">NLNET::CNamingClient::unregisterService()</a>. +<p> +<div class="fragment"><pre>00129 { <span class="keywordflow">return</span> <a class="code" href="a02306.html#NLNET_1_1CCallbackServerp5">_InputSIDA</a>; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClienta22" doxytag="NLNET::CCallbackClient::getSockId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a02303.html">TSockId</a> NLNET::CCallbackClient::getSockId </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02303.html">TSockId</a> </td> + <td class="mdname1" valign="top" nowrap> <em>hostid</em> = <a class="el" href="a05379.html#a75">InvalidSockId</a> </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> +Returns the sockid. +<p> + +<p> +Implements <a class="el" href="a02306.html#NLNET_1_1CCallbackNetBasea15">NLNET::CCallbackNetBase</a>. +<p> +Definition at line <a class="el" href="a05524.html#l00272">272</a> of file <a class="el" href="a05524.html">callback_client.cpp</a>. +<p> +References <a class="el" href="a05526.html#l00533">NLNET::CCallbackNetBase::checkThreadId()</a>, <a class="el" href="a05507.html#l00198">NLNET::CBufClient::id()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, and <a class="el" href="a05511.html#l00042">NLNET::TSockId</a>. +<p> +Referenced by <a class="el" href="a06098.html#l00280">NLNET::CNetManager::addClient()</a>, <a class="el" href="a06645.html#l00653">NLNET::CUnifiedNetwork::addService()</a>, <a class="el" href="a06098.html#l00097">NLNET::CNetManager::createConnection()</a>, and <a class="el" href="a06098.html#l00357">NLNET::CNetManager::update()</a>. +<p> +<div class="fragment"><pre>00273 { +00274 <a class="code" href="a04199.html#a6">nlassert</a> (hostid == InvalidSockId); +00275 <a class="code" href="a02306.html#NLNET_1_1CCallbackServerb4">checkThreadId</a> (); +00276 +00277 <span class="keywordflow">return</span> <a class="code" href="a02295.html#NLNET_1_1CCallbackClienta24">id</a> (); +00278 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClienta23" doxytag="NLNET::CCallbackClient::hostAddress" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> virtual const <a class="el" href="a02665.html">CInetAddress</a>& NLNET::CCallbackClient::hostAddress </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02303.html">TSockId</a> </td> + <td class="mdname1" valign="top" nowrap> <em>hostid</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Returns the address of the specified host. +<p> + +<p> +Reimplemented from <a class="el" href="a02306.html#NLNET_1_1CCallbackNetBasea16">NLNET::CCallbackNetBase</a>. +<p> +Definition at line <a class="el" href="a05525.html#l00071">71</a> of file <a class="el" href="a05525.html">callback_client.h</a>. +<p> +References <a class="el" href="a05507.html#l00169">NLNET::CBufClient::remoteAddress()</a>, and <a class="el" href="a05511.html#l00042">NLNET::TSockId</a>. +<p> +<div class="fragment"><pre>00071 { <span class="keywordflow">return</span> <a class="code" href="a02295.html#NLNET_1_1CCallbackClienta32">remoteAddress</a>(); } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClienta24" doxytag="NLNET::CCallbackClient::id" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a02303.html">TSockId</a> NLNET::CBufClient::id </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Returns the id of the connection. +<p> + +<p> +Definition at line <a class="el" href="a05507.html#l00198">198</a> of file <a class="el" href="a05507.html">buf_client.h</a>. +<p> +References <a class="el" href="a05507.html#l00206">NLNET::CBufClient::_BufSock</a>, and <a class="el" href="a05511.html#l00042">NLNET::TSockId</a>. +<p> +Referenced by <a class="el" href="a06138.html#l00577">NLNET::CPacsClient::connect()</a>, <a class="el" href="a05506.html#l00140">NLNET::CBufClient::dataAvailable()</a>, and <a class="el" href="a05524.html#l00272">getSockId()</a>. +<p> +<div class="fragment"><pre>00198 { <span class="keywordflow">return</span> <a class="code" href="a02295.html#NLNET_1_1CCallbackClientp0">_BufSock</a>; <span class="comment">/*_RecvTask->sockId();*/</span> } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServera21" doxytag="NLNET::CCallbackClient::ignoreAllUnknownId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CCallbackNetBase::ignoreAllUnknownId </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">bool </td> + <td class="mdname1" valign="top" nowrap> <em>b</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +If you ignore all unknown id, the net will not ask for other side to know new association. It's used in the naming service for example because the naming client will never answer. In this case, it will always send the message with the full string name (slower) +<p> +Definition at line <a class="el" href="a05527.html#l00157">157</a> of file <a class="el" href="a05527.html">callback_net_base.h</a>. +<p> +References <a class="el" href="a05527.html#l00188">NLNET::CCallbackNetBase::_InputSIDA</a>, and <a class="el" href="a06468.html#l00176">NLMISC::CStringIdArray::ignoreAllUnknownId()</a>. +<p> +<div class="fragment"><pre>00158 { +00159 <a class="code" href="a02306.html#NLNET_1_1CCallbackServerp5">_InputSIDA</a>.<a class="code" href="a03449.html#NLMISC_1_1CStringIdArraya9">ignoreAllUnknownId</a> (b); +00160 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServera23" doxytag="NLNET::CCallbackClient::isAServer" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NLNET::CCallbackNetBase::isAServer </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Returns true if this is a <a class="el" href="a02307.html">CCallbackServer</a>. +<p> + +<p> +Definition at line <a class="el" href="a05527.html#l00126">126</a> of file <a class="el" href="a05527.html">callback_net_base.h</a>. +<p> +References <a class="el" href="a05527.html#l00201">NLNET::CCallbackNetBase::_IsAServer</a>, and <a class="el" href="a05526.html#l00533">NLNET::CCallbackNetBase::checkThreadId()</a>. +<p> +<div class="fragment"><pre>00126 { <a class="code" href="a02306.html#NLNET_1_1CCallbackServerb4">checkThreadId</a> (); <span class="keywordflow">return</span> <a class="code" href="a02306.html#NLNET_1_1CCallbackServerp6">_IsAServer</a>; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServera25" doxytag="NLNET::CCallbackClient::maxExpectedBlockSize" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a11">uint32</a> NLNET::CBufNetBase::maxExpectedBlockSize </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Returns the max size of the received messages (default: 2^31-1). +<p> + +<p> +Definition at line <a class="el" href="a05511.html#l00135">135</a> of file <a class="el" href="a05511.html">buf_net_base.h</a>. +<p> +References <a class="el" href="a05511.html#l00223">NLNET::CBufNetBase::_MaxExpectedBlockSize</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +Referenced by <a class="el" href="a05506.html#l00085">NLNET::CBufClient::connect()</a>, and <a class="el" href="a05512.html#l00093">NLNET::CBufServer::init()</a>. +<p> +<div class="fragment"><pre>00136 { +00137 <span class="keywordflow">return</span> _MaxExpectedBlockSize; +00138 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServera26" doxytag="NLNET::CCallbackClient::maxSentBlockSize" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a11">uint32</a> NLNET::CBufNetBase::maxSentBlockSize </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Returns the max size of the sent messages (default: 2^31-1). +<p> + +<p> +Definition at line <a class="el" href="a05511.html#l00141">141</a> of file <a class="el" href="a05511.html">buf_net_base.h</a>. +<p> +References <a class="el" href="a05511.html#l00226">NLNET::CBufNetBase::_MaxSentBlockSize</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +Referenced by <a class="el" href="a05512.html#l00299">NLNET::CBufServer::send()</a>, and <a class="el" href="a05506.html#l00121">NLNET::CBufClient::send()</a>. +<p> +<div class="fragment"><pre>00142 { +00143 <span class="keywordflow">return</span> _MaxSentBlockSize; +00144 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClienta29" doxytag="NLNET::CCallbackClient::newBytesDownloaded" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a13">uint64</a> NLNET::CBufClient::newBytesDownloaded </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> [inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Returns the number of bytes downloaded since the previous call to this method. +<p> + +<p> +Definition at line <a class="el" href="a05506.html#l00361">361</a> of file <a class="el" href="a05506.html">buf_client.cpp</a>. +<p> +References <a class="el" href="a05507.html#l00212">NLNET::CBufClient::_PrevBytesDownloaded</a>, <a class="el" href="a05507.html#l00172">NLNET::CBufClient::bytesDownloaded()</a>, <a class="el" href="a05981.html#l00102">uint64</a>, and <a class="el" href="a05506.html#l00350">NLNET::updateStatCounter()</a>. +<p> +<div class="fragment"><pre>00362 { +00363 <span class="keywordflow">return</span> <a class="code" href="a05379.html#a120">updateStatCounter</a>( _PrevBytesDownloaded, <a class="code" href="a02295.html#NLNET_1_1CCallbackClienta2">bytesDownloaded</a>() ); +00364 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClienta30" doxytag="NLNET::CCallbackClient::newBytesUploaded" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a13">uint64</a> NLNET::CBufClient::newBytesUploaded </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> [inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Returns the number of bytes uploaded since the previous call to this method. +<p> + +<p> +Definition at line <a class="el" href="a05506.html#l00370">370</a> of file <a class="el" href="a05506.html">buf_client.cpp</a>. +<p> +References <a class="el" href="a05507.html#l00215">NLNET::CBufClient::_PrevBytesUploaded</a>, <a class="el" href="a05507.html#l00175">NLNET::CBufClient::bytesUploaded()</a>, <a class="el" href="a05981.html#l00102">uint64</a>, and <a class="el" href="a05506.html#l00350">NLNET::updateStatCounter()</a>. +<p> +<div class="fragment"><pre>00371 { +00372 <span class="keywordflow">return</span> <a class="code" href="a05379.html#a120">updateStatCounter</a>( _PrevBytesUploaded, <a class="code" href="a02295.html#NLNET_1_1CCallbackClienta3">bytesUploaded</a>() ); +00373 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServerb10" doxytag="NLNET::CCallbackClient::processOneMessage" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CCallbackNetBase::processOneMessage </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> [protected, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Read a message from the network and process it. +<p> + +<p> +Definition at line <a class="el" href="a05526.html#l00223">223</a> of file <a class="el" href="a05526.html">callback_net_base.cpp</a>. +<p> +References <a class="el" href="a05527.html#l00167">NLNET::CCallbackNetBase::_BytesReceived</a>, <a class="el" href="a05527.html#l00196">NLNET::CCallbackNetBase::_CallbackArray</a>, <a class="el" href="a05527.html#l00199">NLNET::CCallbackNetBase::_DefaultCallback</a>, <a class="el" href="a05527.html#l00193">NLNET::CCallbackNetBase::_OutputSIDA</a>, <a class="el" href="a05514.html#l00329">NLNET::CBufSock::asString()</a>, <a class="el" href="a05515.html#l00070">NLNET::CBufSock::AuthorizedCallback</a>, <a class="el" href="a05526.html#l00533">NLNET::CCallbackNetBase::checkThreadId()</a>, <a class="el" href="a05527.html#l00138">NLNET::CCallbackNetBase::disconnect()</a>, <a class="el" href="a06026.html#l00432">NLNET::CMessage::getId()</a>, <a class="el" href="a06026.html#l00411">NLNET::CMessage::getName()</a>, <a class="el" href="a02306.html#NLNET_1_1CCallbackNetBasea15">NLNET::CCallbackNetBase::getSockId()</a>, <a class="el" href="a06027.html#l00104">NLNET::CMessage::length()</a>, <a class="el" href="a05622.html#l00101">nldebug</a>, <a class="el" href="a05622.html#l00135">nlwarning</a>, <a class="el" href="a02306.html#NLNET_1_1CCallbackNetBaseb4">NLNET::CCallbackNetBase::receive()</a>, <a class="el" href="a05981.html#l00097">sint16</a>, <a class="el" href="a05527.html#l00055">NLNET::TMsgCallback</a>, <a class="el" href="a06026.html#l00441">NLNET::CMessage::toString()</a>, <a class="el" href="a05511.html#l00042">NLNET::TSockId</a>, <a class="el" href="a06468.html#l00054">NLMISC::CStringIdArray::TStringId</a>, and <a class="el" href="a06027.html#l00239">NLNET::CMessage::TypeHasAnId</a>. +<p> +Referenced by <a class="el" href="a05526.html#l00328">NLNET::CCallbackNetBase::baseUpdate()</a>. +<p> +<div class="fragment"><pre>00224 { +00225 <a class="code" href="a02306.html#NLNET_1_1CCallbackServerb4">checkThreadId</a> (); +00226 +00227 <span class="comment">// slow down the layer H_AUTO (CCallbackNetBase_processOneMessage);</span> +00228 +00229 <a class="code" href="a02918.html">CMessage</a> msgin (_OutputSIDA, <span class="stringliteral">""</span>, <span class="keyword">true</span>); +00230 <a class="code" href="a05379.html#a74">TSockId</a> tsid; +00231 <a class="code" href="a02305.html#NLNET_1_1CCallbackClientd1">receive</a> (msgin, &tsid); +00232 +00233 <a class="code" href="a02306.html#NLNET_1_1CCallbackServerp0">_BytesReceived</a> += msgin.<a class="code" href="a02918.html#NLNET_1_1CMessagea24">length</a> (); +00234 +00235 <span class="comment">// now, we have to call the good callback</span> +00236 <a class="code" href="a03449.html#NLMISC_1_1CStringIdArrayw0">NLMISC::CStringIdArray::TStringId</a> pos = -1; +00237 <span class="keywordflow">if</span> (msgin.<a class="code" href="a02918.html#NLNET_1_1CMessageo1">TypeHasAnId</a>) +00238 { +00239 pos = msgin.<a class="code" href="a02918.html#NLNET_1_1CMessagea15">getId</a> (); +00240 } +00241 <span class="keywordflow">else</span> +00242 { +00243 std::string name = msgin.<a class="code" href="a02918.html#NLNET_1_1CMessagea16">getName</a> (); +00244 <a class="code" href="a04558.html#a8">sint16</a> i; +00245 <span class="keywordflow">for</span> (i = 0; i < (<a class="code" href="a04558.html#a8">sint16</a>) <a class="code" href="a02306.html#NLNET_1_1CCallbackServerp2">_CallbackArray</a>.size (); i++) +00246 { +00247 <span class="keywordflow">if</span> (name == <a class="code" href="a02306.html#NLNET_1_1CCallbackServerp2">_CallbackArray</a>[i].Key) +00248 { +00249 pos = i; +00250 <span class="keywordflow">break</span>; +00251 } +00252 } +00253 } +00254 +00255 <a class="code" href="a05379.html#a83">TMsgCallback</a> cb = NULL; +00256 <span class="keywordflow">if</span> (pos < 0 || pos >= (<a class="code" href="a04558.html#a8">sint16</a>) <a class="code" href="a02306.html#NLNET_1_1CCallbackServerp2">_CallbackArray</a>.size ()) +00257 { +00258 <span class="keywordflow">if</span> (<a class="code" href="a02306.html#NLNET_1_1CCallbackServerp3">_DefaultCallback</a> == NULL) +00259 { +00260 <a class="code" href="a04199.html#a2">nlwarning</a> (<span class="stringliteral">"LNETL3NB_CB: Callback %s not found in _CallbackArray"</span>, msgin.<a class="code" href="a02918.html#NLNET_1_1CMessagea63">toString</a>().c_str()); +00261 } +00262 <span class="keywordflow">else</span> +00263 { +00264 cb = <a class="code" href="a02306.html#NLNET_1_1CCallbackServerp3">_DefaultCallback</a>; +00265 } +00266 } +00267 <span class="keywordflow">else</span> +00268 { +00269 cb = <a class="code" href="a02306.html#NLNET_1_1CCallbackServerp2">_CallbackArray</a>[pos].Callback; +00270 } +00271 +00272 <a class="code" href="a05379.html#a74">TSockId</a> realid = <a class="code" href="a02305.html#NLNET_1_1CCallbackClienta22">getSockId</a> (tsid); +00273 +00274 <span class="keywordflow">if</span> (!realid->AuthorizedCallback.empty() && msgin.<a class="code" href="a02918.html#NLNET_1_1CMessagea16">getName</a>() != realid->AuthorizedCallback) +00275 { +00276 <a class="code" href="a04199.html#a2">nlwarning</a> (<span class="stringliteral">"LNETL3NB_CB: %s try to call the callback %s but only %s is authorized. Disconnect him!"</span>, tsid->asString().c_str(), msgin.<a class="code" href="a02918.html#NLNET_1_1CMessagea63">toString</a>().c_str(), tsid->AuthorizedCallback.c_str()); +00277 <a class="code" href="a02305.html#NLNET_1_1CCallbackClienta8">disconnect</a> (tsid); +00278 } +00279 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (cb == NULL) +00280 { +00281 <a class="code" href="a04199.html#a2">nlwarning</a> (<span class="stringliteral">"LNETL3NB_CB: Callback %s is NULL, can't call it"</span>, msgin.<a class="code" href="a02918.html#NLNET_1_1CMessagea63">toString</a>().c_str()); +00282 } +00283 <span class="keywordflow">else</span> +00284 { +00285 <a class="code" href="a04199.html#a0">nldebug</a> (<span class="stringliteral">"LNETL3NB_CB: Calling callback (%s)%s"</span>, msgin.<a class="code" href="a02918.html#NLNET_1_1CMessagea16">getName</a>().c_str(), (cb==<a class="code" href="a02306.html#NLNET_1_1CCallbackServerp3">_DefaultCallback</a>)?<span class="stringliteral">" DEFAULT_CB"</span>:<span class="stringliteral">""</span>); +00286 cb(msgin, realid, *<span class="keyword">this</span>); +00287 } +00288 +00289 <span class="comment">/*</span> +00290 <span class="comment"> if (pos < 0 || pos >= (sint16) _CallbackArray.size ())</span> +00291 <span class="comment"> {</span> +00292 <span class="comment"> if (_DefaultCallback == NULL)</span> +00293 <span class="comment"> nlwarning ("LNETL3NB_CB: Callback %s not found in _CallbackArray", msgin.toString().c_str());</span> +00294 <span class="comment"> else</span> +00295 <span class="comment"> {</span> +00296 <span class="comment"> // ...</span> +00297 <span class="comment"> }</span> +00298 <span class="comment"> }</span> +00299 <span class="comment"> else</span> +00300 <span class="comment"> {</span> +00301 <span class="comment"> TSockId realid = getSockId (tsid);</span> +00302 <span class="comment"></span> +00303 <span class="comment"> if (!realid->AuthorizedCallback.empty() && msgin.getName() != realid->AuthorizedCallback)</span> +00304 <span class="comment"> {</span> +00305 <span class="comment"> nlwarning ("LNETL3NB_CB: %s try to call the callback %s but only %s is authorized. Disconnect him!", tsid->asString().c_str(), msgin.toString().c_str(), tsid->AuthorizedCallback.c_str());</span> +00306 <span class="comment"> disconnect (tsid);</span> +00307 <span class="comment"> }</span> +00308 <span class="comment"> else if (_CallbackArray[pos].Callback == NULL)</span> +00309 <span class="comment"> {</span> +00310 <span class="comment"> nlwarning ("LNETL3NB_CB: Callback %s is NULL, can't call it", msgin.toString().c_str());</span> +00311 <span class="comment"> }</span> +00312 <span class="comment"> else</span> +00313 <span class="comment"> {</span> +00314 <span class="comment"> nldebug ("LNETL3NB_CB: Calling callback (%s)", _CallbackArray[pos].Key);</span> +00315 <span class="comment"> _CallbackArray[pos].Callback (msgin, realid, *this);</span> +00316 <span class="comment"> }</span> +00317 <span class="comment"> }</span> +00318 <span class="comment">*/</span> +00319 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServerb12" doxytag="NLNET::CCallbackClient::pushMessageIntoReceiveQueue" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CBufNetBase::pushMessageIntoReceiveQueue </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a04558.html#a7">uint8</a> * </td> + <td class="mdname" nowrap> <em>buffer</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a> </td> + <td class="mdname" nowrap> <em>size</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline, protected, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05511.html#l00183">183</a> of file <a class="el" href="a05511.html">buf_net_base.h</a>. +<p> +References <a class="el" href="a05511.html#l00211">NLNET::CBufNetBase::_RecvFifo</a>, <a class="el" href="a05646.html#l00649">buffer</a>, <a class="el" href="a05511.html#l00056">NLNET::CFifoAccessor</a>, <a class="el" href="a05511.html#l00203">NLNET::CBufNetBase::setDataAvailableFlag()</a>, <a class="el" href="a05646.html#l00645">size</a>, <a class="el" href="a05981.html#l00100">uint32</a>, and <a class="el" href="a05981.html#l00096">uint8</a>. +<p> +<div class="fragment"><pre>00184 { +00185 <span class="comment">//sint32 mbsize;</span> +00186 { +00187 <span class="comment">//nldebug( "BNB: Acquiring the receive queue... ");</span> +00188 <a class="code" href="a05379.html#a79">CFifoAccessor</a> recvfifo( &_RecvFifo ); +00189 <span class="comment">//nldebug( "BNB: Acquired, pushing the received buffer... ");</span> +00190 recvfifo.value().push( buffer, size ); +00191 <span class="comment">//nldebug( "BNB: Pushed, releasing the receive queue..." );</span> +00192 <span class="comment">//mbsize = recvfifo.value().size() / 1048576;</span> +00193 <a class="code" href="a02296.html#NLNET_1_1CCallbackServerb16">setDataAvailableFlag</a>( <span class="keyword">true</span> ); +00194 } +00195 <span class="comment">//nldebug( "BNB: Released." );</span> +00196 <span class="comment">/*if ( mbsize > 1 )</span> +00197 <span class="comment"> {</span> +00198 <span class="comment"> nlwarning( "The receive queue size exceeds %d MB", mbsize );</span> +00199 <span class="comment"> }*/</span> +00200 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServerb13" doxytag="NLNET::CCallbackClient::pushMessageIntoReceiveQueue" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CBufNetBase::pushMessageIntoReceiveQueue </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const std::vector< <a class="el" href="a04558.html#a7">uint8</a> > & </td> + <td class="mdname1" valign="top" nowrap> <em>buffer</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, protected, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Push message into receive queue (mutexed). +<p> + +<p> +Definition at line <a class="el" href="a05511.html#l00164">164</a> of file <a class="el" href="a05511.html">buf_net_base.h</a>. +<p> +References <a class="el" href="a05511.html#l00211">NLNET::CBufNetBase::_RecvFifo</a>, <a class="el" href="a05646.html#l00649">buffer</a>, <a class="el" href="a05511.html#l00056">NLNET::CFifoAccessor</a>, and <a class="el" href="a05511.html#l00203">NLNET::CBufNetBase::setDataAvailableFlag()</a>. +<p> +Referenced by <a class="el" href="a05515.html#l00135">NLNET::CBufSock::advertiseSystemEvent()</a>, and <a class="el" href="a05506.html#l00437">NLNET::CClientReceiveTask::run()</a>. +<p> +<div class="fragment"><pre>00165 { +00166 <span class="comment">//sint32 mbsize;</span> +00167 { +00168 <span class="comment">//nldebug( "BNB: Acquiring the receive queue... ");</span> +00169 <a class="code" href="a05379.html#a79">CFifoAccessor</a> recvfifo( &_RecvFifo ); +00170 <span class="comment">//nldebug( "BNB: Acquired, pushing the received buffer... ");</span> +00171 recvfifo.value().push( buffer ); +00172 <span class="comment">//nldebug( "BNB: Pushed, releasing the receive queue..." );</span> +00173 <span class="comment">//mbsize = recvfifo.value().size() / 1048576;</span> +00174 <a class="code" href="a02296.html#NLNET_1_1CCallbackServerb16">setDataAvailableFlag</a>( <span class="keyword">true</span> ); +00175 } +00176 <span class="comment">//nldebug( "BNB: Released." );</span> +00177 <span class="comment">//if ( mbsize > 1 )</span> +00178 <span class="comment">//{</span> +00179 <span class="comment">// nlwarning( "The receive queue size exceeds %d MB", mbsize );</span> +00180 <span class="comment">//}</span> +00181 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClienta31" doxytag="NLNET::CCallbackClient::receive" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CBufClient::receive </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02271.html">NLMISC::CMemStream</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>buffer</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Receives next block of data in the specified buffer (resizes the vector) You must call <a class="el" href="a02295.html#NLNET_1_1CBufClienta5">dataAvailable()</a> before every call to <a class="el" href="a02295.html#NLNET_1_1CCallbackClienta31">receive()</a> +<p> +Definition at line <a class="el" href="a05506.html#l00272">272</a> of file <a class="el" href="a05506.html">buf_client.cpp</a>. +<p> +References <a class="el" href="a05646.html#l00649">buffer</a>, <a class="el" href="a05511.html#l00056">NLNET::CFifoAccessor</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a05515.html#l00040">nlnettrace</a>, <a class="el" href="a05511.html#l00154">NLNET::CBufNetBase::receiveQueue()</a>, and <a class="el" href="a05511.html#l00203">NLNET::CBufNetBase::setDataAvailableFlag()</a>. +<p> +<div class="fragment"><pre>00273 { +00274 <a class="code" href="a04092.html#a0">nlnettrace</a>( <span class="stringliteral">"CBufClient::receive"</span> ); +00275 <span class="comment">//nlassert( dataAvailable() );</span> +00276 +00277 <span class="comment">// Extract buffer from the receive queue</span> +00278 { +00279 <a class="code" href="a05379.html#a79">CFifoAccessor</a> recvfifo( &<a class="code" href="a02296.html#NLNET_1_1CCallbackServerb14">receiveQueue</a>() ); +00280 <a class="code" href="a04199.html#a6">nlassert</a>( ! recvfifo.value().empty() ); +00281 recvfifo.value().front( buffer ); +00282 recvfifo.value().pop(); +00283 <a class="code" href="a02296.html#NLNET_1_1CCallbackServerb16">setDataAvailableFlag</a>( ! recvfifo.value().empty() ); +00284 } +00285 +00286 <span class="comment">// Extract event type</span> +00287 <a class="code" href="a04199.html#a6">nlassert</a>( <a class="code" href="a04223.html#a589">buffer</a>.buffer()[<a class="code" href="a04223.html#a589">buffer</a>.size()-1] == CBufNetBase::User ); +00288 <span class="comment">//commented for optimisation nldebug( "LNETL1: Client read buffer (%d+%d B)", buffer.size(), sizeof(TSockId)+1 );</span> +00289 <a class="code" href="a04223.html#a589">buffer</a>.resize( <a class="code" href="a04223.html#a589">buffer</a>.size()-1 ); +00290 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClientd1" doxytag="NLNET::CCallbackClient::receive" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CCallbackClient::receive </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02918.html">CMessage</a> & </td> + <td class="mdname" nowrap> <em>buffer</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a02303.html">TSockId</a> * </td> + <td class="mdname" nowrap> <em>hostid</em> = NULL</td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [private, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +On this layer, you can't call directly receive, It s the <a class="el" href="a02295.html#NLNET_1_1CCallbackClienta42">update()</a> function that receive and call your callaback. +<p> + +<p> +Implements <a class="el" href="a02306.html#NLNET_1_1CCallbackNetBaseb4">NLNET::CCallbackNetBase</a>. +<p> +Definition at line <a class="el" href="a05524.html#l00220">220</a> of file <a class="el" href="a05524.html">callback_client.cpp</a>. +<p> +References <a class="el" href="a05646.html#l00649">buffer</a>, <a class="el" href="a05526.html#l00533">NLNET::CCallbackNetBase::checkThreadId()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a06462.html#l00060">NLMISC_BSWAP32</a>, <a class="el" href="a05622.html#l00460">nlstopex</a>, <a class="el" href="a05379.html#a225a87">NLNET::Receiving</a>, <a class="el" href="a05511.html#l00042">NLNET::TSockId</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +<div class="fragment"><pre>00221 { +00222 <a class="code" href="a02306.html#NLNET_1_1CCallbackServerb4">checkThreadId</a> (); +00223 <a class="code" href="a04199.html#a6">nlassert</a> (connected ()); +00224 *hostid = InvalidSockId; +00225 +00226 <span class="preprocessor">#ifdef USE_MESSAGE_RECORDER</span> +00227 <span class="preprocessor"></span> <span class="keywordflow">if</span> ( _MR_RecordingState != <a class="code" href="a02306.html#NLNET_1_1CCallbackServerw8NLNET_1_1CCallbackServerw5">Replay</a> ) +00228 { +00229 <span class="preprocessor">#endif</span> +00230 <span class="preprocessor"></span> +00231 <span class="comment">// Receive</span> +00232 CBufClient::receive (buffer); +00233 +00234 <span class="comment">// debug features, we number all packet to be sure that they are all sent and received</span> +00235 <span class="comment">// \todo remove this debug feature when ok</span> +00236 <span class="preprocessor">#ifdef NL_BIG_ENDIAN</span> +00237 <span class="preprocessor"></span> <a class="code" href="a04558.html#a11">uint32</a> val = <a class="code" href="a05039.html#a1">NLMISC_BSWAP32</a>(*(<a class="code" href="a04558.html#a11">uint32</a>*)<a class="code" href="a04223.html#a589">buffer</a>.buffer ()); +00238 <span class="preprocessor">#else</span> +00239 <span class="preprocessor"></span> <a class="code" href="a04558.html#a11">uint32</a> val = *(<a class="code" href="a04558.html#a11">uint32</a>*)<a class="code" href="a04223.html#a589">buffer</a>.buffer (); +00240 <span class="preprocessor">#endif</span> +00241 <span class="preprocessor"></span> +00242 <span class="comment">// nldebug ("receive message number %u", val);</span> +00243 <span class="keywordflow">if</span> (<a class="code" href="a02305.html#NLNET_1_1CCallbackClientr0">ReceiveNextValue</a> != val) +00244 { +00245 <a class="code" href="a04199.html#a14">nlstopex</a> ((<span class="stringliteral">"LNETL3C: !!!LOST A MESSAGE!!! I received the message number %u but I'm waiting the message number %u (cnx %s), warn lecroart@nevrax.com with the log now please"</span>, val, ReceiveNextValue, <span class="keywordtype">id</span>()->asString().c_str())); +00246 <span class="comment">// resync the message number</span> +00247 <a class="code" href="a02305.html#NLNET_1_1CCallbackClientr0">ReceiveNextValue</a> = val; +00248 } +00249 <a class="code" href="a02305.html#NLNET_1_1CCallbackClientr0">ReceiveNextValue</a>++; +00250 +00251 <span class="preprocessor">#ifdef USE_MESSAGE_RECORDER</span> +00252 <span class="preprocessor"></span> <span class="keywordflow">if</span> ( _MR_RecordingState == <a class="code" href="a02306.html#NLNET_1_1CCallbackServerw8NLNET_1_1CCallbackServerw4">Record</a> ) +00253 { +00254 <span class="comment">// Record received message</span> +00255 _MR_Recorder.recordNext( _MR_UpdateCounter, Receiving, *hostid, const_cast<CMessage&>(buffer) ); +00256 } +00257 } +00258 <span class="keywordflow">else</span> +00259 { +00260 <span class="comment">// Retrieve received message loaded by dataAvailable()</span> +00261 <a class="code" href="a04223.html#a589">buffer</a> = _MR_Recorder.ReceivedMessages.front().Message; +00262 _MR_Recorder.ReceivedMessages.pop(); +00263 } +00264 <span class="preprocessor">#endif</span> +00265 <span class="preprocessor"></span> +00266 <a class="code" href="a04223.html#a589">buffer</a>.readType (); +00267 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServerb14" doxytag="NLNET::CCallbackClient::receiveQueue" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a05379.html#a78">CSynchronizedFIFO</a>& NLNET::CBufNetBase::receiveQueue </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> [inline, protected, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Access to the receive queue. +<p> + +<p> +Definition at line <a class="el" href="a05511.html#l00154">154</a> of file <a class="el" href="a05511.html">buf_net_base.h</a>. +<p> +References <a class="el" href="a05511.html#l00211">NLNET::CBufNetBase::_RecvFifo</a>, and <a class="el" href="a05511.html#l00053">NLNET::CSynchronizedFIFO</a>. +<p> +Referenced by <a class="el" href="a05512.html#l00364">NLNET::CBufServer::dataAvailable()</a>, <a class="el" href="a05506.html#l00140">NLNET::CBufClient::dataAvailable()</a>, <a class="el" href="a05506.html#l00318">NLNET::CBufClient::disconnect()</a>, <a class="el" href="a05512.html#l00565">NLNET::CBufServer::receive()</a>, <a class="el" href="a05506.html#l00272">NLNET::CBufClient::receive()</a>, and <a class="el" href="a05512.html#l00987">NLNET::CServerReceiveTask::run()</a>. +<p> +<div class="fragment"><pre>00154 { <span class="keywordflow">return</span> _RecvFifo; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClienta32" doxytag="NLNET::CCallbackClient::remoteAddress" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const <a class="el" href="a02665.html">CInetAddress</a>& NLNET::CBufClient::remoteAddress </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Returns the address of the remote host. +<p> + +<p> +Definition at line <a class="el" href="a05507.html#l00169">169</a> of file <a class="el" href="a05507.html">buf_client.h</a>. +<p> +References <a class="el" href="a05507.html#l00206">NLNET::CBufClient::_BufSock</a>, <a class="el" href="a06405.html#l00238">NLNET::CSock::remoteAddr()</a>, and <a class="el" href="a05515.html#l00243">NLNET::CBufSock::Sock</a>. +<p> +Referenced by <a class="el" href="a05525.html#l00071">hostAddress()</a>, and <a class="el" href="a06089.html#l00285">NLNET::CNamingClient::info()</a>. +<p> +<div class="fragment"><pre>00169 { <span class="keywordflow">return</span> <a class="code" href="a02295.html#NLNET_1_1CCallbackClientp0">_BufSock</a>->Sock->remoteAddr(); } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClientd2" doxytag="NLNET::CCallbackClient::send" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CCallbackClient::send </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a02271.html">NLMISC::CMemStream</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>buffer</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, private]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +These function is public in the base class and put it private here because user cannot use it in layer 2. +<p> + +<p> +Reimplemented from <a class="el" href="a02295.html#NLNET_1_1CBufClienta20">NLNET::CBufClient</a>. +<p> +Definition at line <a class="el" href="a05525.html#l00096">96</a> of file <a class="el" href="a05525.html">callback_client.h</a>. +<p> +References <a class="el" href="a05622.html#l00416">nlstop</a>. +<p> +<div class="fragment"><pre>00096 { <a class="code" href="a04199.html#a12">nlstop</a>; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClienta33" doxytag="NLNET::CCallbackClient::send" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CCallbackClient::send </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a02918.html">CMessage</a> & </td> + <td class="mdname" nowrap> <em>buffer</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a02303.html">TSockId</a> </td> + <td class="mdname" nowrap> <em>hostid</em> = <a class="el" href="a05379.html#a75">InvalidSockId</a>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>bool </td> + <td class="mdname" nowrap> <em>log</em> = true</td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Sends a message to the remote host (the second parameter isn't used). +<p> + +<p> +Implements <a class="el" href="a02306.html#NLNET_1_1CCallbackNetBasea19">NLNET::CCallbackNetBase</a>. +<p> +Definition at line <a class="el" href="a05524.html#l00079">79</a> of file <a class="el" href="a05524.html">callback_client.cpp</a>. +<p> +References <a class="el" href="a05646.html#l00649">buffer</a>, <a class="el" href="a05526.html#l00533">NLNET::CCallbackNetBase::checkThreadId()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a06462.html#l00060">NLMISC_BSWAP32</a>, <a class="el" href="a05379.html#a225a86">NLNET::Sending</a>, <a class="el" href="a05511.html#l00042">NLNET::TSockId</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +Referenced by <a class="el" href="a06645.html#l00653">NLNET::CUnifiedNetwork::addService()</a>, <a class="el" href="a05958.html#l00063">NLNET::CLoginClient::connectToShard()</a>, <a class="el" href="a06094.html#l00123">NLNET::CNetDisplayer::doDisplay()</a>, <a class="el" href="a06089.html#l00411">NLNET::CNamingClient::queryServicePort()</a>, <a class="el" href="a06089.html#l00302">NLNET::CNamingClient::registerService()</a>, <a class="el" href="a06089.html#l00340">NLNET::CNamingClient::registerServiceWithSId()</a>, <a class="el" href="a06089.html#l00373">NLNET::CNamingClient::resendRegisteration()</a>, <a class="el" href="a06138.html#l00097">NLNET::CPacsClient::sendMessage()</a>, and <a class="el" href="a06089.html#l00385">NLNET::CNamingClient::unregisterService()</a>. +<p> +<div class="fragment"><pre>00080 { +00081 <a class="code" href="a04199.html#a6">nlassert</a> (hostid == InvalidSockId); <span class="comment">// should always be InvalidSockId on client</span> +00082 <a class="code" href="a02306.html#NLNET_1_1CCallbackServerb4">checkThreadId</a> (); +00083 <a class="code" href="a04199.html#a6">nlassert</a> (connected ()); +00084 <a class="code" href="a04199.html#a6">nlassert</a> (<a class="code" href="a04223.html#a589">buffer</a>.length() != 0); +00085 <a class="code" href="a04199.html#a6">nlassert</a> (<a class="code" href="a04223.html#a589">buffer</a>.typeIsSet()); +00086 +00087 <a class="code" href="a02306.html#NLNET_1_1CCallbackServerp1">_BytesSent</a> += <a class="code" href="a04223.html#a589">buffer</a>.length (); +00088 +00089 <span class="comment">// if (log)</span> +00090 { +00092 <span class="comment">// nldebug ("send message number %u", SendNextValue);</span> +00093 } +00094 +00095 <span class="comment">// debug features, we number all packet to be sure that they are all sent and received</span> +00096 <span class="comment">// \todo remove this debug feature when ok</span> +00097 <span class="comment">// fill the number</span> +00098 <a class="code" href="a04558.html#a11">uint32</a> *val = (<a class="code" href="a04558.html#a11">uint32</a>*)<a class="code" href="a04223.html#a589">buffer</a>.buffer (); +00099 <span class="preprocessor">#ifdef NL_BIG_ENDIAN</span> +00100 <span class="preprocessor"></span> *val = <a class="code" href="a05039.html#a1">NLMISC_BSWAP32</a>(SendNextValue); +00101 <span class="preprocessor">#else</span> +00102 <span class="preprocessor"></span> *val = <a class="code" href="a02305.html#NLNET_1_1CCallbackClientr1">SendNextValue</a>; +00103 <span class="preprocessor">#endif</span> +00104 <span class="preprocessor"></span> SendNextValue++; +00105 +00106 +00107 <span class="preprocessor">#ifdef USE_MESSAGE_RECORDER</span> +00108 <span class="preprocessor"></span> <span class="keywordflow">if</span> ( _MR_RecordingState != <a class="code" href="a02306.html#NLNET_1_1CCallbackServerw8NLNET_1_1CCallbackServerw5">Replay</a> ) +00109 { +00110 <span class="preprocessor">#endif</span> +00111 <span class="preprocessor"></span> +00112 <span class="comment">// Send</span> +00113 CBufClient::send (buffer); +00114 +00115 <span class="preprocessor">#ifdef USE_MESSAGE_RECORDER</span> +00116 <span class="preprocessor"></span> <span class="keywordflow">if</span> ( _MR_RecordingState == <a class="code" href="a02306.html#NLNET_1_1CCallbackServerw8NLNET_1_1CCallbackServerw4">Record</a> ) +00117 { +00118 <span class="comment">// Record sent message</span> +00119 _MR_Recorder.recordNext( _MR_UpdateCounter, Sending, hostid, const_cast<CMessage&>(buffer) ); +00120 } +00121 } +00122 <span class="keywordflow">else</span> +00123 { +00125 } +00126 <span class="preprocessor">#endif</span> +00127 <span class="preprocessor"></span>} +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackNetBasea20" doxytag="NLNET::CCallbackClient::sendAllMyAssociations" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CCallbackNetBase::sendAllMyAssociations </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02303.html">TSockId</a> </td> + <td class="mdname1" valign="top" nowrap> <em>to</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Used by client and server class. +<p> + +<p> +Reimplemented in <a class="el" href="a02307.html#NLNET_1_1CCallbackServerd3">NLNET::CCallbackServer</a>. </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServerb16" doxytag="NLNET::CCallbackClient::setDataAvailableFlag" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CBufNetBase::setDataAvailableFlag </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">bool </td> + <td class="mdname1" valign="top" nowrap> <em>da</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, protected, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Sets _DataAvailable. +<p> + +<p> +Definition at line <a class="el" href="a05511.html#l00203">203</a> of file <a class="el" href="a05511.html">buf_net_base.h</a>. +<p> +References <a class="el" href="a05511.html#l00214">NLNET::CBufNetBase::_DataAvailable</a>. +<p> +Referenced by <a class="el" href="a05512.html#l00364">NLNET::CBufServer::dataAvailable()</a>, <a class="el" href="a05506.html#l00140">NLNET::CBufClient::dataAvailable()</a>, <a class="el" href="a05506.html#l00318">NLNET::CBufClient::disconnect()</a>, <a class="el" href="a05511.html#l00164">NLNET::CBufNetBase::pushMessageIntoReceiveQueue()</a>, <a class="el" href="a05512.html#l00565">NLNET::CBufServer::receive()</a>, <a class="el" href="a05506.html#l00272">NLNET::CBufClient::receive()</a>, and <a class="el" href="a05512.html#l00987">NLNET::CServerReceiveTask::run()</a>. +<p> +<div class="fragment"><pre>00203 { _DataAvailable = da; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServera33" doxytag="NLNET::CCallbackClient::setDefaultCallback" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CCallbackNetBase::setDefaultCallback </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a05379.html#a83">TMsgCallback</a> </td> + <td class="mdname1" valign="top" nowrap> <em>defaultCallback</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Sets default callback for unknown message types. +<p> + +<p> +Definition at line <a class="el" href="a05527.html#l00110">110</a> of file <a class="el" href="a05527.html">callback_net_base.h</a>. +<p> +References <a class="el" href="a05527.html#l00199">NLNET::CCallbackNetBase::_DefaultCallback</a>, and <a class="el" href="a05527.html#l00055">NLNET::TMsgCallback</a>. +<p> +Referenced by <a class="el" href="a06645.html#l00653">NLNET::CUnifiedNetwork::addService()</a>, and <a class="el" href="a06645.html#l00479">NLNET::CUnifiedNetwork::init()</a>. +<p> +<div class="fragment"><pre>00110 { <a class="code" href="a02306.html#NLNET_1_1CCallbackServerp3">_DefaultCallback</a> = defaultCallback; } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClienta36" doxytag="NLNET::CCallbackClient::setDisconnectionCallback" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CCallbackClient::setDisconnectionCallback </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a05379.html#a76">TNetCallback</a> </td> + <td class="mdname" nowrap> <em>cb</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>void * </td> + <td class="mdname" nowrap> <em>arg</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Sets callback for disconnections (or NULL to disable callback). +<p> + +<p> +Reimplemented from <a class="el" href="a02306.html#NLNET_1_1CCallbackNetBasea22">NLNET::CCallbackNetBase</a>. +<p> +Definition at line <a class="el" href="a05525.html#l00080">80</a> of file <a class="el" href="a05525.html">callback_client.h</a>. +<p> +References <a class="el" href="a05526.html#l00533">NLNET::CCallbackNetBase::checkThreadId()</a>, and <a class="el" href="a05511.html#l00047">NLNET::TNetCallback</a>. +<p> +Referenced by <a class="el" href="a06645.html#l00653">NLNET::CUnifiedNetwork::addService()</a>. +<p> +<div class="fragment"><pre>00080 { <a class="code" href="a02306.html#NLNET_1_1CCallbackServerb4">checkThreadId</a> (); CCallbackNetBase::setDisconnectionCallback (cb, arg); } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServera35" doxytag="NLNET::CCallbackClient::setMaxExpectedBlockSize" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CBufNetBase::setMaxExpectedBlockSize </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a10">sint32</a> </td> + <td class="mdname1" valign="top" nowrap> <em>limit</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Sets the max size of the received messages. If receiving a message bigger than the limit, the connection will be dropped.<p> +Default value: 1 MegaByte If you put a negative number as limit, the max size is reset to the default value. Warning: you can call this method only at initialization time, before connecting (for a client) or calling init() (for a server) ! +<p> +Definition at line <a class="el" href="a05511.html#l00109">109</a> of file <a class="el" href="a05511.html">buf_net_base.h</a>. +<p> +References <a class="el" href="a05511.html#l00223">NLNET::CBufNetBase::_MaxExpectedBlockSize</a>, <a class="el" href="a05981.html#l00099">sint32</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +<div class="fragment"><pre>00110 { +00111 <span class="keywordflow">if</span> ( limit < 0 ) +00112 _MaxExpectedBlockSize = 1048576; +00113 <span class="keywordflow">else</span> +00114 _MaxExpectedBlockSize = (<a class="code" href="a04558.html#a11">uint32</a>)limit; +00115 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServera36" doxytag="NLNET::CCallbackClient::setMaxSentBlockSize" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CBufNetBase::setMaxSentBlockSize </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a10">sint32</a> </td> + <td class="mdname1" valign="top" nowrap> <em>limit</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Sets the max size of the sent messages. Note: Limiting of sending not implemented, currently<p> +Default value: 1 MegaByte If you put a negative number as limit, the max size is reset to the default value. Warning: you can call this method only at initialization time, before connecting (for a client) or calling init() (for a server) ! +<p> +Definition at line <a class="el" href="a05511.html#l00126">126</a> of file <a class="el" href="a05511.html">buf_net_base.h</a>. +<p> +References <a class="el" href="a05511.html#l00226">NLNET::CBufNetBase::_MaxSentBlockSize</a>, <a class="el" href="a05981.html#l00099">sint32</a>, and <a class="el" href="a05981.html#l00100">uint32</a>. +<p> +<div class="fragment"><pre>00127 { +00128 <span class="keywordflow">if</span> ( limit < 0 ) +00129 _MaxSentBlockSize = 1048576; +00130 <span class="keywordflow">else</span> +00131 _MaxSentBlockSize = (<a class="code" href="a04558.html#a11">uint32</a>)limit; +00132 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServera37" doxytag="NLNET::CCallbackClient::setOtherSideAssociations" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CCallbackNetBase::setOtherSideAssociations </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const char ** </td> + <td class="mdname" nowrap> <em>associationarray</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a03449.html#NLMISC_1_1CStringIdArrayw0">NLMISC::CStringIdArray::TStringId</a> </td> + <td class="mdname" nowrap> <em>arraysize</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Gives some association of the other side. The goal is, in specific case, we don't want to ask associations to the other side (client is not secure for example). In this case, we can set other side associations by hand using this functions. +<p> +Definition at line <a class="el" href="a05526.html#l00451">451</a> of file <a class="el" href="a05526.html">callback_net_base.cpp</a>. +<p> +References <a class="el" href="a06468.html#l00059">NLMISC::CStringIdArray::addString()</a>, <a class="el" href="a05526.html#l00533">NLNET::CCallbackNetBase::checkThreadId()</a>, <a class="el" href="a05527.html#l00129">NLNET::CCallbackNetBase::getSIDA()</a>, <a class="el" href="a05622.html#l00101">nldebug</a>, <a class="el" href="a05981.html#l00104">sint</a>, and <a class="el" href="a06468.html#l00054">NLMISC::CStringIdArray::TStringId</a>. +<p> +<div class="fragment"><pre>00452 { +00453 <a class="code" href="a02306.html#NLNET_1_1CCallbackServerb4">checkThreadId</a> (); +00454 +00455 <a class="code" href="a04199.html#a0">nldebug</a> (<span class="stringliteral">"LNETL3NB_ASSOC: setOtherSideAssociations() sets %d association strings"</span>, arraysize); +00456 +00457 <span class="keywordflow">for</span> (<a class="code" href="a04558.html#a14">sint</a> i = 0; i < arraysize; i++) +00458 { +00459 <a class="code" href="a04199.html#a0">nldebug</a> (<span class="stringliteral">"LNETL3NB_ASSOC: association '%s' -> %d"</span>, associationarray[i], i); +00460 <a class="code" href="a02306.html#NLNET_1_1CCallbackServera18">getSIDA</a>().<a class="code" href="a03449.html#NLMISC_1_1CStringIdArraya1">addString</a> (associationarray[i], i); +00461 } +00462 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClienta40" doxytag="NLNET::CCallbackClient::setSizeFlushTrigger" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CBufClient::setSizeFlushTrigger </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a10">sint32</a> </td> + <td class="mdname1" valign="top" nowrap> <em>size</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Sets the size flush trigger. When the size of the send queue reaches or exceeds this calue, all data in the send queue is automatically sent (-1 to disable this trigger ) +<p> +Definition at line <a class="el" href="a05507.html#l00152">152</a> of file <a class="el" href="a05507.html">buf_client.h</a>. +<p> +References <a class="el" href="a05507.html#l00206">NLNET::CBufClient::_BufSock</a>, <a class="el" href="a05515.html#l00104">NLNET::CBufSock::setSizeFlushTrigger()</a>, <a class="el" href="a05981.html#l00099">sint32</a>, and <a class="el" href="a05646.html#l00645">size</a>. +<p> +<div class="fragment"><pre>00152 { <a class="code" href="a02295.html#NLNET_1_1CCallbackClientp0">_BufSock</a>->setSizeFlushTrigger( size ); } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClienta41" doxytag="NLNET::CCallbackClient::setTimeFlushTrigger" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CBufClient::setTimeFlushTrigger </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a10">sint32</a> </td> + <td class="mdname1" valign="top" nowrap> <em>ms</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Sets the time flush trigger (in millisecond). When this time is elapsed, all data in the send queue is automatically sent (-1 to disable this trigger) +<p> +Definition at line <a class="el" href="a05507.html#l00147">147</a> of file <a class="el" href="a05507.html">buf_client.h</a>. +<p> +References <a class="el" href="a05507.html#l00206">NLNET::CBufClient::_BufSock</a>, <a class="el" href="a05514.html#l00236">NLNET::CBufSock::setTimeFlushTrigger()</a>, and <a class="el" href="a05981.html#l00099">sint32</a>. +<p> +<div class="fragment"><pre>00147 { <a class="code" href="a02295.html#NLNET_1_1CCallbackClientp0">_BufSock</a>->setTimeFlushTrigger( ms ); } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClienta42" doxytag="NLNET::CCallbackClient::update" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CBufClient::update </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> [inherited]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Update the network (call this method evenly). +<p> + +<p> +Definition at line <a class="el" href="a05506.html#l00296">296</a> of file <a class="el" href="a05506.html">buf_client.cpp</a>. +<p> +References <a class="el" href="a05507.html#l00206">NLNET::CBufClient::_BufSock</a>, <a class="el" href="a05515.html#l00120">NLNET::CBufSock::advertiseDisconnection()</a>, <a class="el" href="a02444.html#NLNET_1_1CUdpSockz2109_0">NLNET::CSock::connected()</a>, <a class="el" href="a06487.html#l00101">NLNET::CTcpSock::disconnect()</a>, <a class="el" href="a05515.html#l00243">NLNET::CBufSock::Sock</a>, and <a class="el" href="a05514.html#l00247">NLNET::CBufSock::update()</a>. +<p> +<div class="fragment"><pre>00297 { +00298 <span class="comment">//nlnettrace( "CBufClient::update" );</span> +00299 +00300 <span class="comment">// Update sending</span> +00301 <span class="keywordtype">bool</span> sendingok = <a class="code" href="a02295.html#NLNET_1_1CCallbackClientp0">_BufSock</a>->update(); +00302 +00303 <span class="comment">// Disconnection event if disconnected</span> +00304 <span class="keywordflow">if</span> ( ! ( <a class="code" href="a02295.html#NLNET_1_1CCallbackClientp0">_BufSock</a>->Sock->connected() && sendingok ) ) +00305 { +00306 <span class="keywordflow">if</span> ( <a class="code" href="a02295.html#NLNET_1_1CCallbackClientp0">_BufSock</a>->Sock->connected() ) +00307 { +00308 <a class="code" href="a02295.html#NLNET_1_1CCallbackClientp0">_BufSock</a>->Sock->disconnect(); +00309 } +00310 <a class="code" href="a02295.html#NLNET_1_1CCallbackClientp0">_BufSock</a>->advertiseDisconnection( <span class="keyword">this</span>, NULL ); +00311 } +00312 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClienta43" doxytag="NLNET::CCallbackClient::update" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLNET::CCallbackClient::update </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a10">sint32</a> </td> + <td class="mdname1" valign="top" nowrap> <em>timeout</em> = 0 </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> +Updates the network (call this method evenly). +<p> + +<p> +Reimplemented from <a class="el" href="a02306.html#NLNET_1_1CCallbackNetBasea24">NLNET::CCallbackNetBase</a>. +<p> +Definition at line <a class="el" href="a05524.html#l00162">162</a> of file <a class="el" href="a05524.html">callback_client.cpp</a>. +<p> +References <a class="el" href="a05526.html#l00328">NLNET::CCallbackNetBase::baseUpdate()</a>, <a class="el" href="a05526.html#l00533">NLNET::CCallbackNetBase::checkThreadId()</a>, <a class="el" href="a05788.html#l00056">H_AUTO</a>, and <a class="el" href="a05981.html#l00099">sint32</a>. +<p> +Referenced by <a class="el" href="a05958.html#l00063">NLNET::CLoginClient::connectToShard()</a>, <a class="el" href="a06089.html#l00411">NLNET::CNamingClient::queryServicePort()</a>, <a class="el" href="a06089.html#l00302">NLNET::CNamingClient::registerService()</a>, <a class="el" href="a06089.html#l00340">NLNET::CNamingClient::registerServiceWithSId()</a>, <a class="el" href="a06138.html#l00113">NLNET::CPacsClient::update()</a>, and <a class="el" href="a06089.html#l00536">NLNET::CNamingClient::update()</a>. +<p> +<div class="fragment"><pre>00163 { +00164 <span class="comment">// nldebug ("L3: Client: update()");</span> +00165 +00166 <a class="code" href="a04365.html#a4">H_AUTO</a>(L3UpdateClient); +00167 +00168 <a class="code" href="a02306.html#NLNET_1_1CCallbackServerb4">checkThreadId</a> (); +00169 +00170 <a class="code" href="a02306.html#NLNET_1_1CCallbackServerb3">baseUpdate</a> (timeout); <span class="comment">// first receive</span> +00171 +00172 <span class="preprocessor">#ifdef USE_MESSAGE_RECORDER</span> +00173 <span class="preprocessor"></span> <span class="keywordflow">if</span> ( _MR_RecordingState != <a class="code" href="a02306.html#NLNET_1_1CCallbackServerw8NLNET_1_1CCallbackServerw5">Replay</a> ) +00174 { +00175 <span class="preprocessor">#endif</span> +00176 <span class="preprocessor"></span> +00177 <span class="comment">// L1-2 Update (nothing to do in replay mode)</span> +00178 CBufClient::update (); <span class="comment">// then send</span> +00179 +00180 <span class="preprocessor">#ifdef USE_MESSAGE_RECORDER</span> +00181 <span class="preprocessor"></span> } +00182 <span class="preprocessor">#endif</span> +00183 <span class="preprocessor"></span> +00184 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Friends And Related Function Documentation</h2> +<a class="anchor" name="NLNET_1_1CCallbackClientn0" doxytag="NLNET::CCallbackClient::CClientReceiveTask" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> friend class <a class="el" href="a02352.html">CClientReceiveTask</a><code> [friend, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05507.html#l00203">203</a> of file <a class="el" href="a05507.html">buf_client.h</a>. +<p> +Referenced by <a class="el" href="a05506.html#l00057">NLNET::CBufClient::CBufClient()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServern4" doxytag="NLNET::CCallbackClient::NLNET::CBufSock" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> friend class <a class="el" href="a02303.html">NLNET::CBufSock</a><code> [friend, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05511.html#l00148">148</a> of file <a class="el" href="a05511.html">buf_net_base.h</a>. </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="NLNET_1_1CCallbackClientp0" doxytag="NLNET::CCallbackClient::_BufSock" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a02991.html">CNonBlockingBufSock</a>* <a class="el" href="a02295.html#NLNET_1_1CCallbackClientp0">NLNET::CBufClient::_BufSock</a><code> [protected, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Send buffer and connection. +<p> + +<p> +Definition at line <a class="el" href="a05507.html#l00206">206</a> of file <a class="el" href="a05507.html">buf_client.h</a>. +<p> +Referenced by <a class="el" href="a05507.html#l00172">NLNET::CBufClient::bytesDownloaded()</a>, <a class="el" href="a05507.html#l00175">NLNET::CBufClient::bytesUploaded()</a>, <a class="el" href="a05506.html#l00057">NLNET::CBufClient::CBufClient()</a>, <a class="el" href="a05506.html#l00085">NLNET::CBufClient::connect()</a>, <a class="el" href="a05507.html#l00166">NLNET::CBufClient::connected()</a>, <a class="el" href="a05506.html#l00140">NLNET::CBufClient::dataAvailable()</a>, <a class="el" href="a05506.html#l00318">NLNET::CBufClient::disconnect()</a>, <a class="el" href="a05507.html#l00137">NLNET::CBufClient::displaySendQueueStat()</a>, <a class="el" href="a05507.html#l00158">NLNET::CBufClient::flush()</a>, <a class="el" href="a05507.html#l00135">NLNET::CBufClient::getSendQueueSize()</a>, <a class="el" href="a05507.html#l00198">NLNET::CBufClient::id()</a>, <a class="el" href="a05507.html#l00169">NLNET::CBufClient::remoteAddress()</a>, <a class="el" href="a05506.html#l00121">NLNET::CBufClient::send()</a>, <a class="el" href="a05507.html#l00152">NLNET::CBufClient::setSizeFlushTrigger()</a>, <a class="el" href="a05507.html#l00147">NLNET::CBufClient::setTimeFlushTrigger()</a>, <a class="el" href="a05506.html#l00296">NLNET::CBufClient::update()</a>, and <a class="el" href="a05506.html#l00397">NLNET::CBufClient::~CBufClient()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServerp0" doxytag="NLNET::CCallbackClient::_BytesReceived" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a13">uint64</a> <a class="el" href="a02306.html#NLNET_1_1CCallbackServerp0">NLNET::CCallbackNetBase::_BytesReceived</a><code> [protected, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05527.html#l00167">167</a> of file <a class="el" href="a05527.html">callback_net_base.h</a>. +<p> +Referenced by <a class="el" href="a05526.html#l00148">NLNET::CCallbackNetBase::CCallbackNetBase()</a>, <a class="el" href="a05527.html#l00088">NLNET::CCallbackNetBase::getBytesReceived()</a>, and <a class="el" href="a05526.html#l00223">NLNET::CCallbackNetBase::processOneMessage()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServerp1" doxytag="NLNET::CCallbackClient::_BytesSent" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a13">uint64</a> <a class="el" href="a02306.html#NLNET_1_1CCallbackServerp1">NLNET::CCallbackNetBase::_BytesSent</a><code> [protected, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05527.html#l00167">167</a> of file <a class="el" href="a05527.html">callback_net_base.h</a>. +<p> +Referenced by <a class="el" href="a05526.html#l00148">NLNET::CCallbackNetBase::CCallbackNetBase()</a>, and <a class="el" href="a05527.html#l00087">NLNET::CCallbackNetBase::getBytesSent()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServerp2" doxytag="NLNET::CCallbackClient::_CallbackArray" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::vector<<a class="el" href="a03900.html">TCallbackItem</a>> <a class="el" href="a02306.html#NLNET_1_1CCallbackServerp2">NLNET::CCallbackNetBase::_CallbackArray</a><code> [protected, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05527.html#l00196">196</a> of file <a class="el" href="a05527.html">callback_net_base.h</a>. +<p> +Referenced by <a class="el" href="a05526.html#l00184">NLNET::CCallbackNetBase::addCallbackArray()</a>, and <a class="el" href="a05526.html#l00223">NLNET::CCallbackNetBase::processOneMessage()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServerp3" doxytag="NLNET::CCallbackClient::_DefaultCallback" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a05379.html#a83">TMsgCallback</a> <a class="el" href="a02306.html#NLNET_1_1CCallbackServerp3">NLNET::CCallbackNetBase::_DefaultCallback</a><code> [protected, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05527.html#l00199">199</a> of file <a class="el" href="a05527.html">callback_net_base.h</a>. +<p> +Referenced by <a class="el" href="a05526.html#l00223">NLNET::CCallbackNetBase::processOneMessage()</a>, and <a class="el" href="a05527.html#l00110">NLNET::CCallbackNetBase::setDefaultCallback()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServerp4" doxytag="NLNET::CCallbackClient::_FirstUpdate" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool <a class="el" href="a02306.html#NLNET_1_1CCallbackServerp4">NLNET::CCallbackNetBase::_FirstUpdate</a><code> [protected, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05527.html#l00202">202</a> of file <a class="el" href="a05527.html">callback_net_base.h</a>. +<p> +Referenced by <a class="el" href="a05526.html#l00328">NLNET::CCallbackNetBase::baseUpdate()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServerp5" doxytag="NLNET::CCallbackClient::_InputSIDA" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a03449.html">NLMISC::CStringIdArray</a> <a class="el" href="a02306.html#NLNET_1_1CCallbackServerp5">NLNET::CCallbackNetBase::_InputSIDA</a><code> [protected, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05527.html#l00188">188</a> of file <a class="el" href="a05527.html">callback_net_base.h</a>. +<p> +Referenced by <a class="el" href="a05526.html#l00328">NLNET::CCallbackNetBase::baseUpdate()</a>, <a class="el" href="a05527.html#l00129">NLNET::CCallbackNetBase::getSIDA()</a>, and <a class="el" href="a05527.html#l00157">NLNET::CCallbackNetBase::ignoreAllUnknownId()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServerp6" doxytag="NLNET::CCallbackClient::_IsAServer" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool <a class="el" href="a02306.html#NLNET_1_1CCallbackServerp6">NLNET::CCallbackNetBase::_IsAServer</a><code> [protected, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05527.html#l00201">201</a> of file <a class="el" href="a05527.html">callback_net_base.h</a>. +<p> +Referenced by <a class="el" href="a05527.html#l00126">NLNET::CCallbackNetBase::isAServer()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServerp7" doxytag="NLNET::CCallbackClient::_NewDisconnectionCallback" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a05379.html#a76">TNetCallback</a> <a class="el" href="a02306.html#NLNET_1_1CCallbackServerp7">NLNET::CCallbackNetBase::_NewDisconnectionCallback</a><code> [protected, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Used by client and server class. +<p> + +<p> +Definition at line <a class="el" href="a05527.html#l00170">170</a> of file <a class="el" href="a05527.html">callback_net_base.h</a>. +<p> +Referenced by <a class="el" href="a05526.html#l00148">NLNET::CCallbackNetBase::CCallbackNetBase()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClientp9" doxytag="NLNET::CCallbackClient::_NoDelay" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool <a class="el" href="a02295.html#NLNET_1_1CCallbackClientp9">NLNET::CBufClient::_NoDelay</a><code> [protected, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +True when the Nagle algorithm must be disabled (TCP_NODELAY). +<p> + +<p> +Definition at line <a class="el" href="a05507.html#l00209">209</a> of file <a class="el" href="a05507.html">buf_client.h</a>. +<p> +Referenced by <a class="el" href="a05506.html#l00085">NLNET::CBufClient::connect()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServerp8" doxytag="NLNET::CCallbackClient::_OutputSIDA" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a03449.html">NLMISC::CStringIdArray</a> <a class="el" href="a02306.html#NLNET_1_1CCallbackServerp8">NLNET::CCallbackNetBase::_OutputSIDA</a><code> [protected, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05527.html#l00193">193</a> of file <a class="el" href="a05527.html">callback_net_base.h</a>. +<p> +Referenced by <a class="el" href="a05526.html#l00184">NLNET::CCallbackNetBase::addCallbackArray()</a>, <a class="el" href="a05526.html#l00088">NLNET::cbnbMessageAskAssociations()</a>, <a class="el" href="a05526.html#l00464">NLNET::CCallbackNetBase::displayAllMyAssociations()</a>, and <a class="el" href="a05526.html#l00223">NLNET::CCallbackNetBase::processOneMessage()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClientp11" doxytag="NLNET::CCallbackClient::_PrevBytesDownloaded" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a13">uint64</a> <a class="el" href="a02295.html#NLNET_1_1CCallbackClientp11">NLNET::CBufClient::_PrevBytesDownloaded</a><code> [protected, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Previous number of bytes downloaded. +<p> + +<p> +Definition at line <a class="el" href="a05507.html#l00212">212</a> of file <a class="el" href="a05507.html">buf_client.h</a>. +<p> +Referenced by <a class="el" href="a05506.html#l00085">NLNET::CBufClient::connect()</a>, and <a class="el" href="a05506.html#l00361">NLNET::CBufClient::newBytesDownloaded()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClientp12" doxytag="NLNET::CCallbackClient::_PrevBytesUploaded" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a13">uint64</a> <a class="el" href="a02295.html#NLNET_1_1CCallbackClientp12">NLNET::CBufClient::_PrevBytesUploaded</a><code> [protected, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Previous number of bytes uploaded. +<p> + +<p> +Definition at line <a class="el" href="a05507.html#l00215">215</a> of file <a class="el" href="a05507.html">buf_client.h</a>. +<p> +Referenced by <a class="el" href="a05506.html#l00085">NLNET::CBufClient::connect()</a>, and <a class="el" href="a05506.html#l00370">NLNET::CBufClient::newBytesUploaded()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackServerp9" doxytag="NLNET::CCallbackClient::_ThreadId" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a02306.html#NLNET_1_1CCallbackServerp9">NLNET::CCallbackNetBase::_ThreadId</a><code> [protected, inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +<dl compact><dt><b><a class="el" href="todo.html#_todo000049">Todo:</a></b></dt><dd>ace: debug feature that we should remove one day nefore releasing the game</dd></dl> + +<p> +Definition at line <a class="el" href="a05527.html#l00232">232</a> of file <a class="el" href="a05527.html">callback_net_base.h</a>. +<p> +Referenced by <a class="el" href="a05526.html#l00148">NLNET::CCallbackNetBase::CCallbackNetBase()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClientr0" doxytag="NLNET::CCallbackClient::ReceiveNextValue" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a02305.html#NLNET_1_1CCallbackClientr0">NLNET::CCallbackClient::ReceiveNextValue</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05525.html#l00111">111</a> of file <a class="el" href="a05525.html">callback_client.h</a>. </td> + </tr> +</table> +<a class="anchor" name="NLNET_1_1CCallbackClientr1" doxytag="NLNET::CCallbackClient::SendNextValue" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a02305.html#NLNET_1_1CCallbackClientr1">NLNET::CCallbackClient::SendNextValue</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05525.html#l00111">111</a> of file <a class="el" href="a05525.html">callback_client.h</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following files:<ul> +<li><a class="el" href="a05525.html">callback_client.h</a><li><a class="el" href="a05524.html">callback_client.cpp</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 13:54:51 2004 for NeL by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border=0 > +</a>1.3.6 </small></address> +</body> +</html> |