<!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>net_utils.h File Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <div align="left"><a href="http://www.mrpt.org/">Main MRPT website</a> > <b>C++ reference</b> </div> <div align="right"> <a href="index.html"><img border="0" src="mrpt_logo.png" alt="MRPT logo"></a> </div> <!-- Generated by Doxygen 1.7.5 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <div class="left"> <form id="FSearchBox" action="search.php" method="get"> <img id="MSearchSelect" src="search/mag.png" alt=""/> <input type="text" id="MSearchField" name="query" value="Search" size="20" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)"/> </form> </div><div class="right"></div> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#namespaces">Namespaces</a> | <a href="#enum-members">Enumerations</a> | <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">net_utils.h File Reference</div> </div> </div> <div class="contents"> <div class="textblock"><code>#include <<a class="el" href="_c_client_t_c_p_socket_8h_source.html">mrpt/utils/CClientTCPSocket.h</a>></code><br/> <code>#include <<a class="el" href="_c_server_t_c_p_socket_8h_source.html">mrpt/utils/CServerTCPSocket.h</a>></code><br/> <code>#include <<a class="el" href="_t_parameters_8h_source.html">mrpt/utils/TParameters.h</a>></code><br/> </div><div class="textblock"><div class="dynheader"> Include dependency graph for net_utils.h:</div> <div class="dyncontent"> <div class="center"><img src="net__utils_8h__incl.png" border="0" usemap="#net__utils_8h" alt=""/></div> <map name="net__utils_8h" id="net__utils_8h"> <area shape="rect" id="node3" href="_c_client_t_c_p_socket_8h.html" title="mrpt/utils/CClientTCPSocket.h" alt="" coords="517,155,720,181"/><area shape="rect" id="node132" href="_c_server_t_c_p_socket_8h.html" title="mrpt/utils/CServerTCPSocket.h" alt="" coords="829,80,1035,107"/><area shape="rect" id="node141" href="_t_parameters_8h.html" title="mrpt/utils/TParameters.h" alt="" coords="1661,528,1827,555"/><area shape="rect" id="node7" href="utils__defs_8h.html" title="mrpt/utils/utils_defs.h" alt="" coords="1095,379,1241,405"/><area shape="rect" id="node10" href="os_8h.html" title="mrpt/system/os.h" alt="" coords="406,453,529,480"/><area shape="rect" id="node120" href="_c_stream_8h.html" title="mrpt/utils/CStream.h" alt="" coords="926,229,1068,256"/><area shape="rect" id="node23" href="base_2include_2mrpt_2base_2link__pragmas_8h.html" title="mrpt/base/link_pragmas.h" alt="" coords="2261,677,2432,704"/><area shape="rect" id="node26" href="boost__join_8h.html" title="mrpt/utils/boost_join.h" alt="" coords="2425,752,2575,779"/><area shape="rect" id="node28" href="base_2include_2mrpt_2utils_2types_8h.html" title="mrpt/utils/types.h" alt="" coords="716,528,839,555"/><area shape="rect" id="node66" href="mrpt__macros_8h.html" title="mrpt/utils/mrpt_macros.h" alt="" coords="1050,528,1216,555"/><area shape="rect" id="node69" href="compiler__fixes_8h.html" title="mrpt/utils/compiler_fixes.h" alt="" coords="606,453,780,480"/><area shape="rect" id="node96" href="smart__ptr_8hpp.html" title="mrpt/otherlibs/stlplus/smart_ptr.hpp" alt="" coords="1903,528,2129,555"/><area shape="rect" id="node113" href="bits_8h.html" title="mrpt/utils/bits.h" alt="" coords="2421,453,2532,480"/><area shape="rect" id="node40" href="mrpt__stdint_8h.html" title="mrpt/utils/mrpt_stdint.h" alt="" coords="477,677,632,704"/><area shape="rect" id="node43" href="mrpt__inttypes_8h.html" title="mrpt/utils/mrpt_inttypes.h" alt="" coords="347,603,517,629"/><area shape="rect" id="node46" href="math__frwds_8h.html" title="mrpt/math/math_frwds.h" alt="" coords="935,603,1099,629"/><area shape="rect" id="node62" href="_dense.html" title="Eigen/Dense" alt="" coords="593,603,689,629"/><area shape="rect" id="node98" href="containers__fixes_8hpp.html" title="containers_fixes.hpp" alt="" coords="1994,677,2136,704"/><area shape="rect" id="node100" href="exceptions_8hpp.html" title="exceptions.hpp" alt="" coords="1903,603,2013,629"/><area shape="rect" id="node107" href="atomic__incr_8h.html" title="mrpt/synch/atomic_incr.h" alt="" coords="2213,603,2381,629"/><area shape="rect" id="node111" href="smart__ptr_8tpp.html" title="smart_ptr.tpp" alt="" coords="2039,603,2137,629"/><area shape="rect" id="node115" href="_s_s_e__types_8h.html" title="mrpt/utils/SSE_types.h" alt="" coords="2409,528,2567,555"/><area shape="rect" id="node123" href="_c_uncopiable_8h.html" title="mrpt/utils/CUncopiable.h" alt="" coords="737,304,903,331"/><area shape="rect" id="node126" href="_c_object_8h.html" title="mrpt/utils/CObject.h" alt="" coords="928,304,1067,331"/><area shape="rect" id="node129" href="exceptions_8h.html" title="mrpt/utils/exceptions.h" alt="" coords="1091,304,1244,331"/><area shape="rect" id="node137" href="_c_debug_output_capable_8h.html" title="mrpt/utils/CDebugOutputCapable.h" alt="" coords="744,155,971,181"/></map> </div> </div><div class="textblock"><div class="dynheader"> This graph shows which files directly or indirectly include this file:</div> <div class="dyncontent"> <div class="center"><img src="net__utils_8h__dep__incl.png" border="0" usemap="#net__utils_8hdep" alt=""/></div> <map name="net__utils_8hdep" id="net__utils_8hdep"> <area shape="rect" id="node3" href="base_2include_2mrpt_2utils_8h.html" title="utils.h" alt="" coords="338,80,395,107"/><area shape="rect" id="node5" href="base_8h.html" title="base.h" alt="" coords="200,155,261,181"/><area shape="rect" id="node11" href="_c_l_m_s100eth_8h.html" title="CLMS100eth.h" alt="" coords="312,155,421,181"/><area shape="rect" id="node15" href="_c_abstract_holonomic_reactive_method_8h.html" title="CAbstractHolonomicReactiveMethod.h" alt="" coords="459,155,708,181"/><area shape="rect" id="node7" href="_c_image___s_s_e3_8cpp.html" title="CImage_SSE3.cpp" alt="" coords="5,229,139,256"/><area shape="rect" id="node9" href="_c_image___s_s_e2_8cpp.html" title="CImage_SSE2.cpp" alt="" coords="163,229,297,256"/><area shape="rect" id="node13" href="hwdrivers_8h.html" title="hwdrivers.h" alt="" coords="322,229,411,256"/><area shape="rect" id="node17" href="_c_holonomic_n_d_8h.html" title="CHolonomicND.h" alt="" coords="436,229,561,256"/><area shape="rect" id="node19" href="_c_reactive_navigation_system_8h.html" title="CReactiveNavigationSystem.h" alt="" coords="497,304,700,331"/><area shape="rect" id="node23" href="_c_holonomic_v_f_f_8h.html" title="CHolonomicVFF.h" alt="" coords="636,229,765,256"/><area shape="rect" id="node21" href="reactivenav_8h.html" title="reactivenav.h" alt="" coords="549,379,648,405"/></map> </div> </div> <p><a href="net__utils_8h_source.html">Go to the source code of this file.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="namespaces"></a> Namespaces</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemrpt.html">mrpt</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight"><p>This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries. </p> <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemrpt_1_1utils.html">mrpt::utils</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight"><p>Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL. </p> <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacemrpt_1_1utils_1_1net.html">mrpt::utils::net</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight"><p>A set of useful routines for networking. </p> <br/></td></tr> <tr><td colspan="2"><h2><a name="enum-members"></a> Enumerations</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="group__network__grp.html#ga3298f4cac6683e3592549ea01e116af6">mrpt::utils::net::ERRORCODE_HTTP</a> { <br/>   <a class="el" href="group__network__grp.html#gga3298f4cac6683e3592549ea01e116af6a3ec06dcf3bcbc7a44b5d89c9039c6998">mrpt::utils::net::erOk</a> = 0, <a class="el" href="group__network__grp.html#gga3298f4cac6683e3592549ea01e116af6a918213e1bb1a3a50a0377c7b0ce172bf">mrpt::utils::net::erBadURL</a>, <a class="el" href="group__network__grp.html#gga3298f4cac6683e3592549ea01e116af6a9257245834571d1f88e8aa19f5cf7af3">mrpt::utils::net::erCouldntConnect</a>, <a class="el" href="group__network__grp.html#gga3298f4cac6683e3592549ea01e116af6a58245c8e0e5ede3433741ca5d0d1527c">mrpt::utils::net::erNotFound</a>, <br/>   <a class="el" href="group__network__grp.html#gga3298f4cac6683e3592549ea01e116af6ad2983ad09237d1b2b64568f9ea7052c4">mrpt::utils::net::erOtherHTTPError</a> <br/> }</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Possible returns from a HTTP request. <a href="group__network__grp.html#ga3298f4cac6683e3592549ea01e116af6">More...</a><br/></td></tr> <tr><td colspan="2"><h2><a name="func-members"></a> Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">ERRORCODE_HTTP BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__network__grp.html#gad39ce8450e55887628066c72add9345d">mrpt::utils::net::http_get</a> (const string &url, vector_byte &out_content, string &out_errormsg, int port=80, const string &auth_user=string(), const string &auth_pass=string(), int *out_http_responsecode=NULL, <a class="el" href="structmrpt_1_1utils_1_1_t_parameters.html">mrpt::utils::TParameters</a>< string > *extra_headers=NULL, <a class="el" href="structmrpt_1_1utils_1_1_t_parameters.html">mrpt::utils::TParameters</a>< string > *out_headers=NULL, int timeout_ms=1000)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Perform an HTTP GET operation (version for retrieving the data as a vector_byte) <a href="group__network__grp.html#gad39ce8450e55887628066c72add9345d"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">ERRORCODE_HTTP BASE_IMPEXP </td><td class="memItemRight" valign="bottom"><a class="el" href="group__network__grp.html#gab01d7c2f6737001c3500da3a47047d63">mrpt::utils::net::http_get</a> (const string &url, string &out_content, string &out_errormsg, int port=80, const string &auth_user=string(), const string &auth_pass=string(), int *out_http_responsecode=NULL, <a class="el" href="structmrpt_1_1utils_1_1_t_parameters.html">mrpt::utils::TParameters</a>< string > *extra_headers=NULL, <a class="el" href="structmrpt_1_1utils_1_1_t_parameters.html">mrpt::utils::TParameters</a>< string > *out_headers=NULL, int timeout_ms=1000)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Perform an HTTP GET operation (version for retrieving the data as text) <a href="group__network__grp.html#gab01d7c2f6737001c3500da3a47047d63"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="group__network__grp.html#ga7fcf57ef73acb52f5423ccc4384bd7e4">mrpt::utils::net::DNS_resolve_async</a> (const <a class="el" href="classstd_1_1string.html">std::string</a> &server_name, <a class="el" href="classstd_1_1string.html">std::string</a> &out_ip, const unsigned int timeout_ms=3000)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Resolve a server address by its name, returning its IP address as a string - This method has a timeout for the maximum time to wait for the DNS server. <a href="group__network__grp.html#ga7fcf57ef73acb52f5423ccc4384bd7e4"></a><br/></td></tr> </table> </div> <br><hr><br> <table border="0" width="100%"> <tr> <td> Page generated by <a href="http://www.doxygen.org" target="_blank">Doxygen 1.7.5</a> for MRPT 0.9.5 SVN: at Sun Sep 25 17:20:18 UTC 2011</td><td></td> <td width="100"> </td> <td width="150"> </td></tr> </table> </body></html>