Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > fc480f9d5aabed8eeaffe8ad3401a94c > files > 2097

openoffice.org-devel-doc-3.2.1-0.3mdv2010.2.i586.rpm

<html>
<head>
<title>Struct SocketPermission</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../../../idl.css">
</head>
<body>
<div id="adc-idlref">

<a name="_top_"> </a><table class="navimain" border="0" cellpadding="3">
<tr>
<td class="navimain"><a href="../module-ix.html" class="navimain">Overview</a></td>
<td class="navimain"><a href="module-ix.html" class="navimain">Module</a></td>
<td class="navimain"><a href="SocketPermission-xref.html" class="navimain">Use</a></td>
<td class="navimainnone">Devguide</td>
<td class="navimain"><a href="../../../../index-files/index-1.html" class="navimain">Index</a></td>
</tr>
</table>
<table class="navisub" border="0" cellpadding="0">
<tr>
<td class="navisub"><a href="#Elements" class="navisub">Elements' Summary</a></td>
<td class="navisub"><a href="#ElementDetails" class="navisub">Elements' Details</a></td>
</tr>
</table>
<hr>
<table border="0" width="100%" cellpadding="5" cellspacing="3" class="title-table" style="margin-bottom:6pt;">
<tr>
<td><p class="namechain"><a href="../../../../module-ix.html" class="namechain">::</a> <a href="../../../module-ix.html" class="namechain">com</a> :: <a href="../../module-ix.html" class="namechain">sun</a> :: <a href="../module-ix.html" class="namechain">star</a> :: <a href="module-ix.html" class="namechain">connection</a> :: </p>
</td>
</tr>
<tr>
<td class="title">struct SocketPermission</td>
</tr>
<tr>
<td/></tr>
<tr>
<td><dl>
<dt><b>Description</b></dt>
<dd>This permission represents access to a network via sockets.
 A SocketPermission consists of a host specification and a set of actions
 specifying ways to connect to that host. The host is specified as
 </dd>
<dd><pre>
 host = (hostname | IPaddress)[:portrange]
 portrange = portnumber | -portnumber | portnumber-[portnumber]
 </pre>
 The host is expressed as a DNS name, as a numerical IP address, or as
 <code>"localhost"</code> (for the local machine). The wildcard <code>"*"</code>
 may be included once
 in a DNS name host specification. If it is included, it must be in the
 leftmost position, as in <code>"*.sun.com"</code>.
 <br>
 The port or portrange is optional. A port specification of the form <code>"N-"</code>,
 where <code>N</code> is a port number, signifies all ports numbered <code>N</code> and above,
 while a specification of the form <code>"-N"</code> indicates all ports numbered
 <code>N</code> and below.
 
 <p>
 The possible ways to connect to the host are
 <ul>
 <li><code>accept</code></li>
 <li><code>connect</code></li>
 <li><code>listen</code></li>
 <li><code>resolve</code></li>
 </ul><br>
 The <code>"listen"</code> action is only meaningful when used with <code>"localhost"</code>.
 The <code>"resolve"</code> (resolve host/ip name service lookups) action is implied when
 any of the other actions are present.
 <br>
 As an example of the creation and meaning of SocketPermissions, note that if
 the following permission
<pre>
SocketPermission("foo.bar.com:7777", "connect,accept");
</pre>
 is granted, it allows to connect to port 7777 on foo.bar.com, and to
 accept connections on that port.
 <br>
 Similarly, if the following permission
<pre>
SocketPermission("localhost:1024-", "accept,connect,listen");
</pre>
 is granted, it allows that code to accept connections on, connect to, or listen
 on any port between 1024 and 65535 on the local host.
 </p>
 
 @attention
 Granting code permission to accept or make connections to remote hosts may be
 dangerous because malevolent code can then more easily transfer and share
 confidential data among parties who may not otherwise have access to the data.
 </p>

 </dd>
<dt><b>Since </b></dt>
<dd>OpenOffice 1.1.2</dd>
</dl>
</td>
</tr>
</table>
<hr>
<a name="Elements"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle">
<tr>
<td class="subtitle" colspan="2">Elements' Summary</td>
</tr>
<tr>
<td class="imsum_left"><a href="#Host">Host</a></td>
<td class="imsum_right">target host with optional portrange
 &nbsp;</td>
</tr>
<tr>
<td class="imsum_left"><a href="#Actions">Actions</a></td>
<td class="imsum_right">comma separated actions list
 &nbsp;</td>
</tr>
</table>
<a name="ElementDetails"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle">
<tr>
<td class="subtitle">Elements' Details</td>
</tr>
<tr>
<td class="imdetail"><a name="Host" class="membertitle">Host</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center">
<tr>
<td>string <b>Host</b>;<hr>
<dl>
<dt><b>Description</b></dt>
<dd>target host with optional portrange
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="imdetail"><a name="Actions" class="membertitle">Actions</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-data" bgcolor="#ffffff" align="center">
<tr>
<td>string <b>Actions</b>;<hr>
<dl>
<dt><b>Description</b></dt>
<dd>comma separated actions list
 </dd>
</dl>
</td>
</tr>
</table>
</td>
</tr>
</table>
<a href="#_top_">Top of Page</a><hr size="3"><p class="copyright" align="center">Copyright &copy; 2011, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.</p>

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

</html>