Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-testing > by-pkgid > 2c50825dd66d0497b96a67f7fab2ee84 > files > 9235

openoffice.org64-devel-doc-2.4.1.10-1mdv2008.1.x86_64.rpm

<html>
<head>
<title>class SocketAddr</title>
<link rel="stylesheet" type="text/css" href="../../cpp.css">
</head>
<body>
<div id="adc-cppref">

<a name="_top_"> </a><table class="navimain" border="0" cellpadding="1" cellspacing="0">
<tr align="center" valign="top">
<td class="navimain">&nbsp;<a href="../../index.html">Overview</a>&nbsp;</td>
<td class="navimain">&nbsp;<a href="index.html">Namespace</a>&nbsp;</td>
<td class="navimainself">&nbsp;Class&nbsp;</td>
<td class="navimain">&nbsp;<a href="../../index-files/index-1.html">Index</a>&nbsp;</td>
<td class="navimain">&nbsp;<a href="../../help.html">Help</a>&nbsp;</td>
</tr>
</table>
<table class="navisub" cellpadding="0" cellspacing="3">
<tr>
<td width="20%"><font size="-2">PUBLIC MEMBERS:</font></td>
<td>
&nbsp;<font size="-2">CLASSES</font>
|&nbsp;<font size="-2">STRUCTS</font>
|&nbsp;<font size="-2">UNIONS</font>
|&nbsp;<font size="-2">ENUMS</font>
|&nbsp;<font size="-2">TYPEDEFS</font>
|&nbsp;<a href="#publ_ops"><font size="-2"><b>METHODS</b></font></a>
|&nbsp;<a href="#publ_static_ops"><font size="-2"><b>STATIC METHODS</b></font></a>
|&nbsp;<font size="-2">DATA</font>
|&nbsp;<font size="-2">STATIC DATA</font></td>
</tr>
<tr>
<td width="20%"><font size="-2">PROTECTED MEMBERS:</font></td>
<td>
&nbsp;<font size="-2">CLASSES</font>
|&nbsp;<font size="-2">STRUCTS</font>
|&nbsp;<font size="-2">UNIONS</font>
|&nbsp;<font size="-2">ENUMS</font>
|&nbsp;<font size="-2">TYPEDEFS</font>
|&nbsp;<font size="-2">METHODS</font>
|&nbsp;<font size="-2">STATIC METHODS</font>
|&nbsp;<a href="#prot_vars"><font size="-2"><b>DATA</b></font></a>
|&nbsp;<font size="-2">STATIC DATA</font></td>
</tr>
</table>
<hr>
<a href="../../names/index.html" alt="Global Namespace in C++"><font size="+1"><b>::</b></font></a> <a href="index.html" alt="namespace"><font size="+1"><b>osl</b></font></a><font size="+1"> :: </font><div class="title"><h2>class SocketAddr</h2>
</div><hr>
<dl>
<dt>Base Classes</dt>
<dd>None.</dd>
</dl>
<dl>
<dt>Known Derived Classes</dt>
<dd>None.</dd>
</dl>
<br>
<table class="flag-table" border="1" cellspacing="0">
<tr>
<td width="25%" class="flagname">virtual</td>
<td width="25%" class="flagname">abstract</td>
<td width="25%" class="flagname">interface</td>
<td width="25%" class="flagname">template</td>
</tr>
<tr>
<td class="flagno">NO</td>
<td class="flagno">NO</td>
<td class="flagno">NO</td>
<td class="flagno">NO</td>
</tr>
</table>
<dl>
<dt>Summary</dt>
<dd>The class should be understood as a reference to a socket address handle ( struct sockaddr ).

</dd>
<dt>Description</dt>
<dd>        The handle is mutable. 
     </dd>
</dl>
<dl>
<dt>File</dt>
<dd>socket_decl.hxx</dd>
</dl>
<hr>
<dl>
<dt class="subtitle"><a name="publ_"><h3>Public Members</h3>
</a></dt>
<dd><a name="publ_ops"> </a><table class="childlist" border="1" cellpadding="5" cellspacing="0" width="100%">
<tr class="subtitle">
<td colspan="2"><h4>Methods</h4>
</td>
</tr>
<tr>
<td> <br>
<a href="SocketAddr/o.html#SocketAddr-142">SocketAddr</a>( );</td>
<td width="50%"> Creates socket address of unknown type.
</td>
</tr>
<tr>
<td> <br>
<a href="SocketAddr/o.html#SocketAddr-143">SocketAddr</a>( const SocketAddr &amp; Addr );</td>
<td width="50%"> Copy constructor.
</td>
</tr>
<tr>
<td> <br>
<a href="SocketAddr/o.html#SocketAddr-144">SocketAddr</a>( const oslSocketAddr , __osl_socket_NoCopy nocopy );</td>
<td width="50%"> The SocketAddr takes over the responsibility of the handle ( which means,
that the handle gets destructed by the destructor of this reference)

</td>
</tr>
<tr>
<td> <br>
<a href="SocketAddr/o.html#SocketAddr-145">SocketAddr</a>( oslSocketAddr Addr );</td>
<td width="50%"> Copyconstructs the oslSocketAddr handle.
</td>
</tr>
<tr>
<td> <br>
<a href="SocketAddr/o.html#SocketAddr-146">SocketAddr</a>( const ::rtl::OUString &amp; strAddrOrHostName, sal_Int32 nPort );</td>
<td width="50%"> tcpip-specif constructor.
</td>
</tr>
<tr>
<td> <br>
<a href="SocketAddr/o.html#~SocketAddr-147">~SocketAddr</a>( );</td>
<td width="50%"> destroys underlying oslSocketAddress
</td>
</tr>
<tr>
<td>sal_Bool <br>
<a href="SocketAddr/o.html#is-148">is</a>( ) const;</td>
<td width="50%"> checks, if the SocketAddr was created successful.
</td>
</tr>
<tr>
<td>::rtl::OUString <br>
<a href="SocketAddr/o.html#getHostname-149">getHostname</a>( oslSocketResult * pResult = 0 ) const;</td>
<td width="50%"> Converts the address to a (human readable) domain-name.

</td>
</tr>
<tr>
<td>sal_Bool <br>
<a href="SocketAddr/o.html#setHostname-150">setHostname</a>( const ::rtl::OUString &amp; sDottedIpOrHostname );</td>
<td width="50%"> Sets the ipaddress or hostname of the SocketAddress
</td>
</tr>
<tr>
<td>sal_Int32 <br>
<a href="SocketAddr/o.html#getPort-151">getPort</a>( ) const;</td>
<td width="50%"> Returns the port number of the address.
</td>
</tr>
<tr>
<td>sal_Bool <br>
<a href="SocketAddr/o.html#setPort-152">setPort</a>( sal_Int32 nPort );</td>
<td width="50%"> Sets the port number of the address.
</td>
</tr>
<tr>
<td>sal_Bool <br>
<a href="SocketAddr/o.html#setAddr-153">setAddr</a>( const ::rtl::ByteSequence &amp; address );</td>
<td width="50%"> Sets the address of the underlying socket address struct in network byte order.
</td>
</tr>
<tr>
<td>::rtl::ByteSequence <br>
<a href="SocketAddr/o.html#getAddr-154">getAddr</a>( oslSocketResult * pResult = 0 ) const;</td>
<td width="50%"> Returns the address of the underlying socket in network byte order
</td>
</tr>
<tr>
<td>SocketAddr &amp; <br>
<a href="SocketAddr/o.html#operator=-155">operator=</a>( oslSocketAddr Addr );</td>
<td width="50%"> assign the handle to this reference. The previous handle is released.
</td>
</tr>
<tr>
<td>SocketAddr &amp; <br>
<a href="SocketAddr/o.html#operator=-156">operator=</a>( const SocketAddr &amp; Addr );</td>
<td width="50%"> </td>
</tr>
<tr>
<td>SocketAddr &amp; <br>
<a href="SocketAddr/o.html#assign-157">assign</a>( oslSocketAddr Addr, __osl_socket_NoCopy nocopy );</td>
<td width="50%"> Assigns the socket addr without copyconstructing it. 
</td>
</tr>
<tr>
<td>sal_Bool <br>
<a href="SocketAddr/o.html#operator==-158">operator==</a>( oslSocketAddr Addr ) const;</td>
<td width="50%"> Returns true if the underlying handle is identical to the Addr handle.
</td>
</tr>
<tr>
<td>sal_Bool <br>
<a href="SocketAddr/o.html#operator==-159">operator==</a>( const SocketAddr &amp; Addr ) const;</td>
<td width="50%"> Returns true if the underlying handle is identical to the Addr handle.
</td>
</tr>
<tr>
<td>oslSocketAddr <br>
<a href="SocketAddr/o.html#getHandle-160">getHandle</a>( ) const;</td>
<td width="50%"> Returns the underlying SocketAddr handle without copyconstructing it.
</td>
</tr>
</table>
<hr>
<a name="publ_static_ops"> </a><table class="childlist" border="1" cellpadding="5" cellspacing="0" width="100%">
<tr class="subtitle">
<td colspan="2"><h4>Static Methods</h4>
</td>
</tr>
<tr>
<td>static ::rtl::OUString <br>
<a href="SocketAddr/o.html#getLocalHostname-161">getLocalHostname</a>( oslSocketResult * pResult = 0 );</td>
<td width="50%"> Get the hostname for the local interface.
</td>
</tr>
<tr>
<td>static void <br>
<a href="SocketAddr/o.html#resolveHostname-162">resolveHostname</a>( const ::rtl::OUString &amp; strHostName, SocketAddr &amp; Addr );</td>
<td width="50%"> Tries to find an address for a host.
</td>
</tr>
<tr>
<td>static sal_Int32 <br>
<a href="SocketAddr/o.html#getServicePort-163">getServicePort</a>( const ::rtl::OUString &amp; strServiceName, const ::rtl::OUString &amp; strProtocolName = :: rtl :: OUString :: createFromAscii &quot;tcp&quot; );</td>
<td width="50%"> Tries to find the port associated with the given service/protocol-
pair (e.g. &quot;ftp&quot;/&quot;tcp&quot;).
</td>
</tr>
</table>
<hr>
</dd>
</dl>
<dl>
<dt class="subtitle"><a name="prot_"><h3>Protected Members</h3>
</a></dt>
<dd><a name="prot_vars"> </a><table class="childlist" border="1" cellpadding="5" cellspacing="0" width="100%">
<tr class="subtitle">
<td colspan="2"><h4>Data</h4>
</td>
</tr>
<tr bgcolor="white">
<td><a href="../t-oslSocketAddr.html">oslSocketAddr</a> <a href="SocketAddr/d.html#m_handle"><strong>m_handle;</strong></a></td>
<td/></tr>
</table>
<hr>
</dd>
</dl>
<a href="#_top_" class="objchapter">Top of Page</a><hr size="3"><p class="copyright" align="center">Copyright &copy; 2008 Sun Microsystems, Inc.</p>

</div> <!-- id="adc-cppref" -->
</body>

</html>