Sophie

Sophie

distrib > * > cooker > x86_64 > by-pkgid > 5fb1c39f9f9130a3cc01e8b1ffa5c0f8 > files > 1817

libreoffice-devel-3.5.4-4.x86_64.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>OOo 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; 2000, 2012 LibreOffice contributors and/or their affiliates. All rights reserved.</p><p class="copyright" align="center">LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.</p><p class="copyright" align="center">The Document Foundation acknowledges all community members, please find more info <a href="http://www.libreoffice.org/about-us/credits/" target="_blank">at our website</a>.<p>&nbsp;</p><p class="copyright" align="center"><a href="http://www.libreoffice.org/privacy" target="_blank">Privacy Policy</a> | <a href="http://www.libreoffice.org/imprint" target="_blank">Impressum (Legal Info)</a> | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (<a href="http://www.libreoffice.org/download/license/" target="_blank">LGPLv3</a>). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our <a href="http://wiki.documentfoundation.org/TradeMark_Policy" target="_blank">trademark policy</a>.</p>

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

</html>