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/class_NLNET__CNamingClient.html | |
download | nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip |
Initial commit
Diffstat (limited to 'docs/doxygen/nel/class_NLNET__CNamingClient.html')
-rw-r--r-- | docs/doxygen/nel/class_NLNET__CNamingClient.html | 977 |
1 files changed, 977 insertions, 0 deletions
diff --git a/docs/doxygen/nel/class_NLNET__CNamingClient.html b/docs/doxygen/nel/class_NLNET__CNamingClient.html new file mode 100644 index 00000000..5be28c41 --- /dev/null +++ b/docs/doxygen/nel/class_NLNET__CNamingClient.html @@ -0,0 +1,977 @@ +<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> +<HTML> +<HEAD> + <TITLE>nevrax.org : docs</TITLE> + <LINK REL=stylesheet TYPE="text/css" HREF="http://www.nevrax.org/inc/css/nevrax.css"> + <link href="doxygen.css" rel="stylesheet" type="text/css"> +</HEAD> +<BODY MARGINHEIGHT="0" MARGINWIDTH="0"> + +<!-- uplinks --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0> + <TR> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD WIDTH=140 BGCOLOR=#dddddd><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle> <A CLASS=uplinks HREF=http://www.nevrax.org><b>Home</B></FONT></A> </TD> + <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle> <A CLASS=uplinks HREF=http://www.nevrax.com><b>nevrax.com</B></FONT></A> </TD> + </TR> +</TABLE> + +<!-- banner Nevrax --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%> + <TR><TD BGCOLOR="#000000" BACKGROUND="http://www.nevrax.org/inc/img/black_banner.jpg"><A HREF="http://www.nevrax.org"><IMG SRC="http://www.nevrax.org/inc/img/nevrax.gif" WIDTH="170" HEIGHT="45" BORDER=0 ALT="Nevrax" ></A></TD></TR> +</TABLE> + +<!-- main table --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 height=100%> + <TR> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="10" BORDER=0 ALT=""></TD> + <TD WIDTH=140 BGCOLOR=#dddddd VALIGN=TOP ALIGN=middle><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT=""> + + <!------ Begin Box ------> + <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR=black><TR><TD><TABLE border=0 cellspacing=2 cellpadding=0 width=120><tr><TD ALIGN=middle bgcolor=black> + <FONT COLOR=white FACE="sans-serif"><B>Nevrax.org</B></FONT></TD></TR><tr><td colspan=2 bgcolor=#FFFFFF> + <TABLE cellspacing=0 cellpadding=1 border=0> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="Rubrique news"><img width=13 height=15 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-news.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="News">News</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Rubrique mail"><img width=15 height=11 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-mail.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Mailing list archive">Mailing-list</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Rubrique docs"><img width=14 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-docs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Documentation">Documentation</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="Rubrique cvs"><img width=13 height=17 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-cvs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="CVS Web">CVS</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Rubrique bugs"><img width=20 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-bugs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Bugtracking">Bugs</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="Rubrique license"><img width=18 height=12 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-gpl.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="License">License</a></td></tr> + </TABLE> + </TD></TR></TABLE></TD></TR></TABLE> + <!------ End Box ------> + + </TD> + <TD WIDTH=15><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD ALIGN=left valign=top><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT=""> + +<!-- title --> +<TABLE background="http://www.nevrax.org/inc/img/redline.gif" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td> +<A HREF="http://www.nevrax.org/docs/"><img src="http://www.nevrax.org/inc/img/t_docs.gif" ALT="Docs" HEIGHT=20 BORDER=0></A> +</td><td><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="1" HEIGHT="1" BORDER=0 ALT=""> +</td></tr></table> + + +<!-- block --> +<TABLE bgcolor="#dddddd" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td width=1% valign=middle><img width=6 height=14 hspace=2 vspace=2 src="http://www.nevrax.org/inc/img/reddots.gif"></TD> + <TD><B>Documentation</B></TD> + <TD ALIGN=RIGHT> </td> +</tr></table> +<!-- Generated by Doxygen 1.2.2 on Sat May 26 22:32:36 2001 --> +<center> +<a class="qindex" href="index.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">Compound List</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">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> <a class="qindex" href="pages.html">Related Pages</a> <a class="qindexRef" doxygen="_cgi:http://www.nevrax.org/cgi-bin/nel-search.cgi" href="http://www.nevrax.org/cgi-bin/nel-search.cgi">Search</a> </center> +<hr><h1>NLNET::CNamingClient Class Reference</h1>Client side of Naming Service. +<a href="#_details">More...</a> +<p> +<code>#include <<a class="el" href="naming_client_h-source.html">naming_client.h</a>></code> +<p> +Collaboration diagram for NLNET::CNamingClient:<p><center><img src="class_NLNET__CNamingClient_coll_graph.gif" border="0" usemap="#NLNET::CNamingClient_coll_map" alt="Collaboration graph"></center> +<map name="NLNET::CNamingClient_coll_map"> +<area href="class_NLNET__CCallbackClient.html" shape="rect" coords="428,502,580,520"> +<area href="class_NLNET__CCallbackNetBase.html" shape="rect" coords="168,432,333,451"> +<area href="class_NLMISC__CStringIdArray.html" shape="rect" coords="0,334,155,352"> +<area href="class_NLNET__TCallbackItem.html" shape="rect" coords="179,334,323,352"> +<area href="class_NLNET__CStreamClient.html" shape="rect" coords="596,432,740,451"> +<area href="class_NLNET__CBufClient.html" shape="rect" coords="509,334,635,352"> +<area href="class_NLNET__CClientReceiveTask.html" shape="rect" coords="384,432,557,451"> +<area href="class_NLNET__CBufNetBase.html" shape="rect" coords="353,251,492,270"> +<area href="class_NLMISC__IThread.html" shape="rect" coords="516,251,628,270"> +<area href="class_NLMISC__IRunnable.html" shape="rect" coords="347,334,472,352"> +<area href="class_NLNET__CBufSock.html" shape="rect" coords="652,251,772,270"> +<area href="class_NLMISC__CBufFIFO.html" shape="rect" coords="583,168,711,187"> +<area href="class_NLNET__CTcpSock.html" shape="rect" coords="735,168,855,187"> +<area href="class_NLNET__CSock.html" shape="rect" coords="745,99,844,118"> +<area href="class_NLNET__CInetAddress.html" shape="rect" coords="727,0,863,19"> +</map> +<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_NLNET__CNamingClient-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> +<tr><td colspan=2><br><h2>Static Public Methods</h2></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NLNET__CNamingClient.html#d0">connect</a> (const <a class="el" href="class_NLNET__CInetAddress.html">CInetAddress</a>& addr)</td></tr> +<tr><td> </td><td><font size=-1><em>Connect to the naming service.</em> <a href="#d0">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="class_NLNET__CNamingClient.html#d1">connected</a> ()</td></tr> +<tr><td> </td><td><font size=-1><em>Return true if the connection to the Naming Service was done.</em> <a href="#d1">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NLNET__CNamingClient.html#d2">disconnect</a> ()</td></tr> +<tr><td> </td><td><font size=-1><em>Close the connection to the naming service.</em> <a href="#d2">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="namespace_NLNET.html#a10">TServiceId</a> </td><td valign=bottom><a class="el" href="class_NLNET__CNamingClient.html#d3">registerService</a> (const std::string &name, const <a class="el" href="class_NLNET__CInetAddress.html">CInetAddress</a> &addr)</td></tr> +<tr><td> </td><td><font size=-1><em>Register a service within the naming service.</em> <a href="#d3">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="class_NLNET__CNamingClient.html#d4">registerServiceWithSId</a> (const std::string &name, const <a class="el" href="class_NLNET__CInetAddress.html">CInetAddress</a> &addr, <a class="el" href="namespace_NLNET.html#a10">TServiceId</a> sid)</td></tr> +<tr><td> </td><td><font size=-1><em>Register a service within the naming service, using a specified service identifier.</em> <a href="#d4">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NLNET__CNamingClient.html#d5">unregisterService</a> (<a class="el" href="namespace_NLNET.html#a10">TServiceId</a> sid)</td></tr> +<tr><td> </td><td><font size=-1><em>Unregister a service from the naming service, service identifier.</em> <a href="#d5">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NLNET__CNamingClient.html#d6">unregisterAllServices</a> ()</td></tr> +<tr><td> </td><td><font size=-1><em>Unregister all services registered by this client. You don't have to.</em> <a href="#d6">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="types_nl_h.html#a7">uint16</a> </td><td valign=bottom><a class="el" href="class_NLNET__CNamingClient.html#d7">queryServicePort</a> ()</td></tr> +<tr><td> </td><td><font size=-1><em>Requests the naming service to choose a port for the service.</em> <a href="#d7">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="class_NLNET__CNamingClient.html#d8">lookup</a> (const std::string &name, <a class="el" href="class_NLNET__CInetAddress.html">CInetAddress</a> &addr)</td></tr> +<tr><td> </td><td><font size=-1><em>Returns true and the address of the specified service if it is found, otherwise returns false.</em> <a href="#d8">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="class_NLNET__CNamingClient.html#d9">lookup</a> (<a class="el" href="namespace_NLNET.html#a10">TServiceId</a> sid, <a class="el" href="class_NLNET__CInetAddress.html">CInetAddress</a> &addr)</td></tr> +<tr><td> </td><td><font size=-1><em>Same as lookup(const string&, CInetAddress&, uint16&).</em> <a href="#d9">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="class_NLNET__CNamingClient.html#d10">lookupAlternate</a> (const std::string& name, <a class="el" href="class_NLNET__CInetAddress.html">CInetAddress</a>& addr)</td></tr> +<tr><td> </td><td><font size=-1><em>Tells the Naming Service the specified address does not respond for the specified service, and returns true and another address for the service if available, otherwise returns false.</em> <a href="#d10">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NLNET__CNamingClient.html#d11">lookupAll</a> (const std::string &name, std::vector<<a class="el" href="class_NLNET__CInetAddress.html">CInetAddress</a>> &addresses)</td></tr> +<tr><td> </td><td><font size=-1><em>Returns all services corresponding to the specified short name.</em> <a href="#d11">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="class_NLNET__CNamingClient.html#d12">lookupAndConnect</a> (const std::string &name, <a class="el" href="class_NLNET__CCallbackClient.html">CCallbackClient</a> &sock)</td></tr> +<tr><td> </td><td><font size=-1><em>Obtains a socket connected to a service providing the service <em>name</em>.</em> <a href="#d12">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NLNET__CNamingClient.html#d13">update</a> ()</td></tr> +<tr><td> </td><td><font size=-1><em>Call it evenly.</em> <a href="#d13">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NLNET__CNamingClient.html#d14">setRegistrationBroadcastCallback</a> (<a class="el" href="namespace_NLNET.html#a11">TBroadcastCallback</a> cb)</td></tr> +<tr><td> </td><td><font size=-1><em>You can link a callback if you want to know when a new service is registered (NULL to disable callback).</em> <a href="#d14">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NLNET__CNamingClient.html#d15">setUnregistrationBroadcastCallback</a> (<a class="el" href="namespace_NLNET.html#a11">TBroadcastCallback</a> cb)</td></tr> +<tr><td> </td><td><font size=-1><em>You can link a callback if you want to know when a new service is unregistered (NULL to disable callback).</em> <a href="#d15">More...</a><em></em></font><br><br></td></tr> +<tr><td colspan=2><br><h2>Private Types</h2></td></tr> +<tr><td nowrap align=right valign=top>typedef std::map<<a class="el" href="namespace_NLNET.html#a10">TServiceId</a>,<br> + std::string> </td><td valign=bottom><a class="el" href="class_NLNET__CNamingClient.html#u0">TRegServices</a></td></tr> +<tr><td> </td><td><font size=-1><em>Type of map of registered services.</em> <a href="#u0">More...</a><em></em></font><br><br></td></tr> +<tr><td colspan=2><br><h2>Private Methods</h2></td></tr> +<tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="class_NLNET__CNamingClient.html#c0">CNamingClient</a> ()</td></tr> +<tr><td> </td><td><font size=-1><em>Constructor.</em> <a href="#c0">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="class_NLNET__CNamingClient.html#c1">~CNamingClient</a> ()</td></tr> +<tr><td> </td><td><font size=-1><em>Destructor.</em> <a href="#c1">More...</a><em></em></font><br><br></td></tr> +<tr><td colspan=2><br><h2>Static Private Methods</h2></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NLNET__CNamingClient.html#f0">doReceiveLookupAnswer</a> (const std::string &name, std::vector<<a class="el" href="class_NLNET__CInetAddress.html">CInetAddress</a>> &addrs)</td></tr> +<tr><td colspan=2><br><h2>Static Private Attributes</h2></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="class_NLNET__CCallbackClient.html">CCallbackClient</a>* </td><td valign=bottom><a class="el" href="class_NLNET__CNamingClient.html#r0">_Connection</a> = NULL</td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="class_NLNET__CNamingClient.html#u0">TRegServices</a> </td><td valign=bottom><a class="el" href="class_NLNET__CNamingClient.html#r1">_RegisteredServices</a></td></tr> +</table> +<hr><a name="_details"></a><h2>Detailed Description</h2> +Client side of Naming Service. +<p> +Allows to register/unregister services, and to lookup for a registered service. +<p> +<dl compact><dt> +<b>Author(s): </b><dd> + Olivier Cado , Vianney Lecroart , Nevrax France </dl><dl compact><dt> +<b>Date: </b><dd> + 2001 </dl> +<p> + +<p> +Definition at line <a class="el" href="naming_client_h-source.html#l00055">55</a> of file <a class="el" href="naming_client_h-source.html">naming_client.h</a>.<hr><h2>Member Typedef Documentation</h2> +<a name="u0" doxytag="NLNET::CNamingClient::TRegServices"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +typedef std::map<<a class="el" href="namespace_NLNET.html#a10">TServiceId</a>, std::string> NLNET::CNamingClient::TRegServices<code> [private]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Type of map of registered services. +<p> + +<p> +Definition at line <a class="el" href="naming_client_h-source.html#l00152">152</a> of file <a class="el" href="naming_client_h-source.html">naming_client.h</a>. </td> + </tr> +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a name="c0" doxytag="NLNET::CNamingClient::CNamingClient"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +NLNET::CNamingClient::CNamingClient ( + </b></td> + <td valign="bottom"><b> +)<code> [inline, private]</code> + </b></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="naming_client_h-source.html#l00157">157</a> of file <a class="el" href="naming_client_h-source.html">naming_client.h</a>. </td> + </tr> +</table> +<a name="c1" doxytag="NLNET::CNamingClient::~CNamingClient"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +NLNET::CNamingClient::~CNamingClient ( + </b></td> + <td valign="bottom"><b> +)<code> [inline, private]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Destructor. +<p> + +<p> +Definition at line <a class="el" href="naming_client_h-source.html#l00160">160</a> of file <a class="el" href="naming_client_h-source.html">naming_client.h</a>. </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a name="d0" doxytag="NLNET::CNamingClient::connect"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NLNET::CNamingClient::connect ( + </b></td> + <td valign="bottom"><b> +const <a class="el" href="class_NLNET__CInetAddress.html">CInetAddress</a> & <em>addr</em> )<code> [static]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Connect to the naming service. +<p> + +<p> +Definition at line <a class="el" href="naming_client_cpp-source.html#l00151">151</a> of file <a class="el" href="naming_client_cpp-source.html">naming_client.cpp</a>. </td> + </tr> +</table> +<a name="d1" doxytag="NLNET::CNamingClient::connected"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +bool NLNET::CNamingClient::connected ( + </b></td> + <td valign="bottom"><b> +)<code> [inline, static]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Return true if the connection to the Naming Service was done. +<p> + +<p> +Definition at line <a class="el" href="naming_client_h-source.html#l00064">64</a> of file <a class="el" href="naming_client_h-source.html">naming_client.h</a>. </td> + </tr> +</table> +<a name="d2" doxytag="NLNET::CNamingClient::disconnect"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NLNET::CNamingClient::disconnect ( + </b></td> + <td valign="bottom"><b> +)<code> [static]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Close the connection to the naming service. +<p> + +<p> +Definition at line <a class="el" href="naming_client_cpp-source.html#l00165">165</a> of file <a class="el" href="naming_client_cpp-source.html">naming_client.cpp</a>. </td> + </tr> +</table> +<a name="f0" doxytag="NLNET::CNamingClient::doReceiveLookupAnswer"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NLNET::CNamingClient::doReceiveLookupAnswer ( + </b></td> + <td valign="bottom"><b> +const std::string & <em>name</em>, + </b></td> + </tr> + <tr> + <td></td> + <td><b> +std::vector< <a class="el" href="class_NLNET__CInetAddress.html">CInetAddress</a> >& <em>addrs</em> )<code> [static, private]</code> + </b></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="naming_client_cpp-source.html#l00301">301</a> of file <a class="el" href="naming_client_cpp-source.html">naming_client.cpp</a>. </td> + </tr> +</table> +<a name="d9" doxytag="NLNET::CNamingClient::lookup"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +bool NLNET::CNamingClient::lookup ( + </b></td> + <td valign="bottom"><b> +<a class="el" href="namespace_NLNET.html#a10">TServiceId</a> <em>sid</em>, + </b></td> + </tr> + <tr> + <td></td> + <td><b> +<a class="el" href="class_NLNET__CInetAddress.html">CInetAddress</a> & <em>addr</em> )<code> [static]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Same as lookup(const string&, CInetAddress&, uint16&). +<p> + +<p> +Definition at line <a class="el" href="naming_client_cpp-source.html#l00342">342</a> of file <a class="el" href="naming_client_cpp-source.html">naming_client.cpp</a>. </td> + </tr> +</table> +<a name="d8" doxytag="NLNET::CNamingClient::lookup"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +bool NLNET::CNamingClient::lookup ( + </b></td> + <td valign="bottom"><b> +const std::string & <em>name</em>, + </b></td> + </tr> + <tr> + <td></td> + <td><b> +<a class="el" href="class_NLNET__CInetAddress.html">CInetAddress</a> & <em>addr</em> )<code> [static]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Returns true and the address of the specified service if it is found, otherwise returns false. +<p> +<dl compact><dt> +<b>Parameters: </b><dd> +<table border=0 cellspacing=2 cellpadding=0> +<tr><td valign=top><em>name</em> + </td><td> + [in] Short name of the service to find </td></tr> +<tr><td valign=top><em>addr</em> + </td><td> + [out] Address of the service </td></tr> +<tr><td valign=top><em>validitytime</em> + </td><td> + [out] After this number of seconds are elapsed, another lookup will be necessary before sending a message to the service </td></tr> +</table> +</dl><dl compact><dt> +<b>Returns: </b><dd> + true if all worked fine </dl> +<p> +Definition at line <a class="el" href="naming_client_cpp-source.html#l00320">320</a> of file <a class="el" href="naming_client_cpp-source.html">naming_client.cpp</a>. </td> + </tr> +</table> +<a name="d11" doxytag="NLNET::CNamingClient::lookupAll"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NLNET::CNamingClient::lookupAll ( + </b></td> + <td valign="bottom"><b> +const std::string & <em>name</em>, + </b></td> + </tr> + <tr> + <td></td> + <td><b> +std::vector< <a class="el" href="class_NLNET__CInetAddress.html">CInetAddress</a> >& <em>addrs</em> )<code> [static]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Returns all services corresponding to the specified short name. +<p> +Ex: lookupAll ("AS", addresses); +<p> +Definition at line <a class="el" href="naming_client_cpp-source.html#l00384">384</a> of file <a class="el" href="naming_client_cpp-source.html">naming_client.cpp</a>. </td> + </tr> +</table> +<a name="d10" doxytag="NLNET::CNamingClient::lookupAlternate"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +bool NLNET::CNamingClient::lookupAlternate ( + </b></td> + <td valign="bottom"><b> +const std::string & <em>name</em>, + </b></td> + </tr> + <tr> + <td></td> + <td><b> +<a class="el" href="class_NLNET__CInetAddress.html">CInetAddress</a> & <em>addr</em> )<code> [static]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Tells the Naming Service the specified address does not respond for the specified service, and returns true and another address for the service if available, otherwise returns false. +<p> +<dl compact><dt> +<b>Parameters: </b><dd> +<table border=0 cellspacing=2 cellpadding=0> +<tr><td valign=top><em>name</em> + </td><td> + [in] Short name of the service to find </td></tr> +<tr><td valign=top><em>addr</em> + </td><td> + [in/out] In: Address of the service that does not respond. Out: Alternative address </td></tr> +<tr><td valign=top><em>validitytime</em> + </td><td> + [out] After this number of seconds are elapsed, another lookup will be necessary before sending a message to the service </td></tr> +</table> +</dl><dl compact><dt> +<b>Returns: </b><dd> + true if all worked fine. </dl> +<p> +Definition at line <a class="el" href="naming_client_cpp-source.html#l00363">363</a> of file <a class="el" href="naming_client_cpp-source.html">naming_client.cpp</a>. </td> + </tr> +</table> +<a name="d12" doxytag="NLNET::CNamingClient::lookupAndConnect"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +bool NLNET::CNamingClient::lookupAndConnect ( + </b></td> + <td valign="bottom"><b> +const std::string & <em>name</em>, + </b></td> + </tr> + <tr> + <td></td> + <td><b> +<a class="el" href="class_NLNET__CCallbackClient.html">CCallbackClient</a> & <em>sock</em> )<code> [static]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Obtains a socket connected to a service providing the service <em>name</em>. +<p> +In case of failure to connect, the method informs the Naming Service and tries to get another service. <dl compact><dt> +<b>Parameters: </b><dd> +<table border=0 cellspacing=2 cellpadding=0> +<tr><td valign=top><em>name</em> + </td><td> + [in] Short name of the service to find and connected </td></tr> +<tr><td valign=top><em>sock</em> + </td><td> + [out] The connected socket. </td></tr> +<tr><td valign=top><em>validitytime</em> + </td><td> + [out] After this number of seconds are elapsed, another lookup will be necessary before sending a message to the service. </td></tr> +</table> +</dl><dl compact><dt> +<b>Returns: </b><dd> + false if the service was not found. </dl> +<p> +Definition at line <a class="el" href="naming_client_cpp-source.html#l00397">397</a> of file <a class="el" href="naming_client_cpp-source.html">naming_client.cpp</a>. </td> + </tr> +</table> +<a name="d7" doxytag="NLNET::CNamingClient::queryServicePort"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +<a class="el" href="types_nl_h.html#a7">uint16</a> NLNET::CNamingClient::queryServicePort ( + </b></td> + <td valign="bottom"><b> +)<code> [static]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Requests the naming service to choose a port for the service. +<p> +<dl compact><dt> +<b>Returns: </b><dd> + An empty port number </dl> +<p> +Definition at line <a class="el" href="naming_client_cpp-source.html#l00281">281</a> of file <a class="el" href="naming_client_cpp-source.html">naming_client.cpp</a>. </td> + </tr> +</table> +<a name="d3" doxytag="NLNET::CNamingClient::registerService"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +<a class="el" href="namespace_NLNET.html#a10">TServiceId</a> NLNET::CNamingClient::registerService ( + </b></td> + <td valign="bottom"><b> +const std::string & <em>name</em>, + </b></td> + </tr> + <tr> + <td></td> + <td><b> +const <a class="el" href="class_NLNET__CInetAddress.html">CInetAddress</a> & <em>addr</em> )<code> [static]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Register a service within the naming service. +<p> +Returns the service identifier assigned by the NS (or 0 if it failed) +<p> +Definition at line <a class="el" href="naming_client_cpp-source.html#l00177">177</a> of file <a class="el" href="naming_client_cpp-source.html">naming_client.cpp</a>. </td> + </tr> +</table> +<a name="d4" doxytag="NLNET::CNamingClient::registerServiceWithSId"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +bool NLNET::CNamingClient::registerServiceWithSId ( + </b></td> + <td valign="bottom"><b> +const std::string & <em>name</em>, + </b></td> + </tr> + <tr> + <td></td> + <td><b> +const <a class="el" href="class_NLNET__CInetAddress.html">CInetAddress</a> & <em>addr</em>, + </b></td> + </tr> + <tr> + <td></td> + <td><b> +<a class="el" href="namespace_NLNET.html#a10">TServiceId</a> <em>sid</em> )<code> [static]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Register a service within the naming service, using a specified service identifier. +<p> +Returns false if the service identifier is unavailable i.e. the registration failed. +<p> +Definition at line <a class="el" href="naming_client_cpp-source.html#l00206">206</a> of file <a class="el" href="naming_client_cpp-source.html">naming_client.cpp</a>. </td> + </tr> +</table> +<a name="d14" doxytag="NLNET::CNamingClient::setRegistrationBroadcastCallback"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NLNET::CNamingClient::setRegistrationBroadcastCallback ( + </b></td> + <td valign="bottom"><b> +<a class="el" href="namespace_NLNET.html#a11">TBroadcastCallback</a> <em>cb</em> )<code> [static]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +You can link a callback if you want to know when a new service is registered (NULL to disable callback). +<p> + +<p> +Definition at line <a class="el" href="naming_client_cpp-source.html#l00048">48</a> of file <a class="el" href="naming_client_cpp-source.html">naming_client.cpp</a>. </td> + </tr> +</table> +<a name="d15" doxytag="NLNET::CNamingClient::setUnregistrationBroadcastCallback"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NLNET::CNamingClient::setUnregistrationBroadcastCallback ( + </b></td> + <td valign="bottom"><b> +<a class="el" href="namespace_NLNET.html#a11">TBroadcastCallback</a> <em>cb</em> )<code> [static]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +You can link a callback if you want to know when a new service is unregistered (NULL to disable callback). +<p> + +<p> +Definition at line <a class="el" href="naming_client_cpp-source.html#l00053">53</a> of file <a class="el" href="naming_client_cpp-source.html">naming_client.cpp</a>. </td> + </tr> +</table> +<a name="d6" doxytag="NLNET::CNamingClient::unregisterAllServices"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NLNET::CNamingClient::unregisterAllServices ( + </b></td> + <td valign="bottom"><b> +)<code> [static]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Unregister all services registered by this client. You don't have to. +<p> + +<p> +Definition at line <a class="el" href="naming_client_cpp-source.html#l00269">269</a> of file <a class="el" href="naming_client_cpp-source.html">naming_client.cpp</a>. </td> + </tr> +</table> +<a name="d5" doxytag="NLNET::CNamingClient::unregisterService"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NLNET::CNamingClient::unregisterService ( + </b></td> + <td valign="bottom"><b> +<a class="el" href="namespace_NLNET.html#a10">TServiceId</a> <em>sid</em> )<code> [static]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Unregister a service from the naming service, service identifier. +<p> + +<p> +Definition at line <a class="el" href="naming_client_cpp-source.html#l00257">257</a> of file <a class="el" href="naming_client_cpp-source.html">naming_client.cpp</a>. </td> + </tr> +</table> +<a name="d13" doxytag="NLNET::CNamingClient::update"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NLNET::CNamingClient::update ( + </b></td> + <td valign="bottom"><b> +)<code> [static]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Call it evenly. +<p> + +<p> +Definition at line <a class="el" href="naming_client_cpp-source.html#l00432">432</a> of file <a class="el" href="naming_client_cpp-source.html">naming_client.cpp</a>. </td> + </tr> +</table> +<hr><h2>Member Data Documentation</h2> +<a name="r0" doxytag="NLNET::CNamingClient::_Connection"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +<a class="el" href="class_NLNET__CCallbackClient.html">CCallbackClient</a> * NLNET::CNamingClient::_Connection = NULL<code> [static, private]</code> + </b></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="naming_client_cpp-source.html#l00041">41</a> of file <a class="el" href="naming_client_cpp-source.html">naming_client.cpp</a>. </td> + </tr> +</table> +<a name="r1" doxytag="NLNET::CNamingClient::_RegisteredServices"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +<a class="el" href="class_NLNET__CNamingClient.html#u0">CNamingClient::TRegServices</a> NLNET::CNamingClient::_RegisteredServices<code> [static, private]</code> + </b></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="naming_client_cpp-source.html#l00042">42</a> of file <a class="el" href="naming_client_cpp-source.html">naming_client.cpp</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following files:<ul> +<li><a class="el" href="naming_client_h-source.html">naming_client.h</a><li><a class="el" href="naming_client_cpp-source.html">naming_client.cpp</a></ul> + + +<!-- footer --> +<BR><FONT Size=+5> </FONT> +</TD> +<TD WIDTH=15><IMG SRC=http://www.nevrax.org/inc/img/pixel.gif WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></TD> +</TR> +</TABLE> +</BODY> +</HTML> |