blob: 44a6795125a9aba43a02c8c7f24cdd9d88034f95 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Apache log4cxx: log4cxx::helpers::InetAddress Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Apache log4cxx
&#160;<span id="projectnumber">Version 0.13.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classlog4cxx_1_1helpers_1_1InetAddress.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="classlog4cxx_1_1helpers_1_1InetAddress-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">log4cxx::helpers::InetAddress Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;<a class="el" href="inetaddress_8h_source.html">inetaddress.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for log4cxx::helpers::InetAddress:</div>
<div class="dyncontent">
<div class="center">
<img src="classlog4cxx_1_1helpers_1_1InetAddress.png" usemap="#log4cxx::helpers::InetAddress_map" alt=""/>
<map id="log4cxx::helpers::InetAddress_map" name="log4cxx::helpers::InetAddress_map">
<area href="classlog4cxx_1_1helpers_1_1Object.html" title="base class for java-like objects. " alt="log4cxx::helpers::Object" shape="rect" coords="0,0,176,24"/>
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a369aecb72f8fe5eb074070a79ecc19d4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1InetAddress.html#a369aecb72f8fe5eb074070a79ecc19d4">InetAddress</a> (const <a class="el" href="namespacelog4cxx.html#aa2308ed05fef2a1366066cb38b177e94">LogString</a> &amp;hostName, const <a class="el" href="namespacelog4cxx.html#aa2308ed05fef2a1366066cb38b177e94">LogString</a> &amp;hostAddr)</td></tr>
<tr class="separator:a369aecb72f8fe5eb074070a79ecc19d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab34e3948858b5dff92d343fc9b6e683e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacelog4cxx.html#aa2308ed05fef2a1366066cb38b177e94">LogString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1InetAddress.html#ab34e3948858b5dff92d343fc9b6e683e">getHostAddress</a> () const</td></tr>
<tr class="memdesc:ab34e3948858b5dff92d343fc9b6e683e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the IP address string "%d.%d.%d.%d". <a href="#ab34e3948858b5dff92d343fc9b6e683e">More...</a><br /></td></tr>
<tr class="separator:ab34e3948858b5dff92d343fc9b6e683e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a67f232276d9493c16fae21585bf8b7ed"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacelog4cxx.html#aa2308ed05fef2a1366066cb38b177e94">LogString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1InetAddress.html#a67f232276d9493c16fae21585bf8b7ed">getHostName</a> () const</td></tr>
<tr class="memdesc:a67f232276d9493c16fae21585bf8b7ed"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the host name for this IP address. <a href="#a67f232276d9493c16fae21585bf8b7ed">More...</a><br /></td></tr>
<tr class="separator:a67f232276d9493c16fae21585bf8b7ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af03cf772e36f56ddf8bc6ddf57d67cfe"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacelog4cxx.html#aa2308ed05fef2a1366066cb38b177e94">LogString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1InetAddress.html#af03cf772e36f56ddf8bc6ddf57d67cfe">toString</a> () const</td></tr>
<tr class="memdesc:af03cf772e36f56ddf8bc6ddf57d67cfe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts this IP address to a String. <a href="#af03cf772e36f56ddf8bc6ddf57d67cfe">More...</a><br /></td></tr>
<tr class="separator:af03cf772e36f56ddf8bc6ddf57d67cfe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classlog4cxx_1_1helpers_1_1Object"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classlog4cxx_1_1helpers_1_1Object')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classlog4cxx_1_1helpers_1_1Object.html">log4cxx::helpers::Object</a></td></tr>
<tr class="memitem:a8ba23411233a652fac44a619e6356115 inherit pub_methods_classlog4cxx_1_1helpers_1_1Object"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1Object.html#a8ba23411233a652fac44a619e6356115">~Object</a> ()</td></tr>
<tr class="separator:a8ba23411233a652fac44a619e6356115 inherit pub_methods_classlog4cxx_1_1helpers_1_1Object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9dac08272167c9af4c7d81e9e205a9de inherit pub_methods_classlog4cxx_1_1helpers_1_1Object"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1Object.html#a9dac08272167c9af4c7d81e9e205a9de">instanceof</a> (const <a class="el" href="classlog4cxx_1_1helpers_1_1Class.html">Class</a> &amp;clazz) const =0</td></tr>
<tr class="separator:a9dac08272167c9af4c7d81e9e205a9de inherit pub_methods_classlog4cxx_1_1helpers_1_1Object"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a24185c7ef795bd6ac70d69c22ca7d9 inherit pub_methods_classlog4cxx_1_1helpers_1_1Object"><td class="memItemLeft" align="right" valign="top">virtual const void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1Object.html#a4a24185c7ef795bd6ac70d69c22ca7d9">cast</a> (const <a class="el" href="classlog4cxx_1_1helpers_1_1Class.html">Class</a> &amp;clazz) const =0</td></tr>
<tr class="separator:a4a24185c7ef795bd6ac70d69c22ca7d9 inherit pub_methods_classlog4cxx_1_1helpers_1_1Object"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a6726cd89a95fea46cf6a47b3f1e68994"><td class="memItemLeft" align="right" valign="top">static InetAddressList&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1InetAddress.html#a6726cd89a95fea46cf6a47b3f1e68994">getAllByName</a> (const <a class="el" href="namespacelog4cxx.html#aa2308ed05fef2a1366066cb38b177e94">LogString</a> &amp;host)</td></tr>
<tr class="memdesc:a6726cd89a95fea46cf6a47b3f1e68994"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines all the IP addresses of a host, given the host's name. <a href="#a6726cd89a95fea46cf6a47b3f1e68994">More...</a><br /></td></tr>
<tr class="separator:a6726cd89a95fea46cf6a47b3f1e68994"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26761c06c97f9f9a31bc267009a95bfb"><td class="memItemLeft" align="right" valign="top">static InetAddressPtr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1InetAddress.html#a26761c06c97f9f9a31bc267009a95bfb">getByName</a> (const <a class="el" href="namespacelog4cxx.html#aa2308ed05fef2a1366066cb38b177e94">LogString</a> &amp;host)</td></tr>
<tr class="memdesc:a26761c06c97f9f9a31bc267009a95bfb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines the IP address of a host, given the host's name. <a href="#a26761c06c97f9f9a31bc267009a95bfb">More...</a><br /></td></tr>
<tr class="separator:a26761c06c97f9f9a31bc267009a95bfb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd87206dd6fb2e3794b72435b9b7498e"><td class="memItemLeft" align="right" valign="top">static InetAddressPtr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1InetAddress.html#acd87206dd6fb2e3794b72435b9b7498e">getLocalHost</a> ()</td></tr>
<tr class="memdesc:acd87206dd6fb2e3794b72435b9b7498e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the local host. <a href="#acd87206dd6fb2e3794b72435b9b7498e">More...</a><br /></td></tr>
<tr class="separator:acd87206dd6fb2e3794b72435b9b7498e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d9bb1ae87bef071d4f278cd25da2132"><td class="memItemLeft" align="right" valign="top">static InetAddressPtr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1helpers_1_1InetAddress.html#a3d9bb1ae87bef071d4f278cd25da2132">anyAddress</a> ()</td></tr>
<tr class="memdesc:a3d9bb1ae87bef071d4f278cd25da2132"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns an <a class="el" href="classlog4cxx_1_1helpers_1_1InetAddress.html">InetAddress</a> which can be used as any address, for example when listening on a port from any remote addresss. <a href="#a3d9bb1ae87bef071d4f278cd25da2132">More...</a><br /></td></tr>
<tr class="separator:a3d9bb1ae87bef071d4f278cd25da2132"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a369aecb72f8fe5eb074070a79ecc19d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a369aecb72f8fe5eb074070a79ecc19d4">&#9670;&nbsp;</a></span>InetAddress()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">log4cxx::helpers::InetAddress::InetAddress </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="namespacelog4cxx.html#aa2308ed05fef2a1366066cb38b177e94">LogString</a> &amp;&#160;</td>
<td class="paramname"><em>hostName</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="namespacelog4cxx.html#aa2308ed05fef2a1366066cb38b177e94">LogString</a> &amp;&#160;</td>
<td class="paramname"><em>hostAddr</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a3d9bb1ae87bef071d4f278cd25da2132"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d9bb1ae87bef071d4f278cd25da2132">&#9670;&nbsp;</a></span>anyAddress()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static InetAddressPtr log4cxx::helpers::InetAddress::anyAddress </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns an <a class="el" href="classlog4cxx_1_1helpers_1_1InetAddress.html">InetAddress</a> which can be used as any address, for example when listening on a port from any remote addresss. </p>
</div>
</div>
<a id="a6726cd89a95fea46cf6a47b3f1e68994"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6726cd89a95fea46cf6a47b3f1e68994">&#9670;&nbsp;</a></span>getAllByName()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static InetAddressList log4cxx::helpers::InetAddress::getAllByName </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="namespacelog4cxx.html#aa2308ed05fef2a1366066cb38b177e94">LogString</a> &amp;&#160;</td>
<td class="paramname"><em>host</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Determines all the IP addresses of a host, given the host's name. </p>
</div>
</div>
<a id="a26761c06c97f9f9a31bc267009a95bfb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a26761c06c97f9f9a31bc267009a95bfb">&#9670;&nbsp;</a></span>getByName()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static InetAddressPtr log4cxx::helpers::InetAddress::getByName </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="namespacelog4cxx.html#aa2308ed05fef2a1366066cb38b177e94">LogString</a> &amp;&#160;</td>
<td class="paramname"><em>host</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Determines the IP address of a host, given the host's name. </p>
</div>
</div>
<a id="ab34e3948858b5dff92d343fc9b6e683e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab34e3948858b5dff92d343fc9b6e683e">&#9670;&nbsp;</a></span>getHostAddress()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespacelog4cxx.html#aa2308ed05fef2a1366066cb38b177e94">LogString</a> log4cxx::helpers::InetAddress::getHostAddress </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the IP address string "%d.%d.%d.%d". </p>
</div>
</div>
<a id="a67f232276d9493c16fae21585bf8b7ed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a67f232276d9493c16fae21585bf8b7ed">&#9670;&nbsp;</a></span>getHostName()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespacelog4cxx.html#aa2308ed05fef2a1366066cb38b177e94">LogString</a> log4cxx::helpers::InetAddress::getHostName </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the host name for this IP address. </p>
</div>
</div>
<a id="acd87206dd6fb2e3794b72435b9b7498e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acd87206dd6fb2e3794b72435b9b7498e">&#9670;&nbsp;</a></span>getLocalHost()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static InetAddressPtr log4cxx::helpers::InetAddress::getLocalHost </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the local host. </p>
</div>
</div>
<a id="af03cf772e36f56ddf8bc6ddf57d67cfe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af03cf772e36f56ddf8bc6ddf57d67cfe">&#9670;&nbsp;</a></span>toString()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespacelog4cxx.html#aa2308ed05fef2a1366066cb38b177e94">LogString</a> log4cxx::helpers::InetAddress::toString </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Converts this IP address to a String. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="inetaddress_8h_source.html">inetaddress.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.13-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="namespacelog4cxx.html">log4cxx</a></li><li class="navelem"><a class="el" href="namespacelog4cxx_1_1helpers.html">helpers</a></li><li class="navelem"><a class="el" href="classlog4cxx_1_1helpers_1_1InetAddress.html">InetAddress</a></li>
<li class="footer">Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
<li class="center">
Copyright &copy; 2003-2022 <a href="https://www.apache.org/">Apache Software Foundation</a>. All Rights Reserved. <a href="https://privacy.apache.org/policies/privacy-policy-public.html">Privacy Policy</a><br/>
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, and the Apache Logging project logo are trademarks of The Apache Software Foundation.<br/>
</li>
</ul>
</div>
</body>
</html>