このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


Struct SocketPermission
Language

The 解放する/自由な and Open 生産性 控訴
解放(する)d: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: 星/主役にする :: 関係 ::

struct SocketPermission
Description
This 許可 代表するs 接近 to a 網状組織 経由で sockets. A SocketPermission consists of a host specification and a 始める,決める of 活動/戦闘s 明示するing ways to connect to that host. The host is 明示するd as
 host = (hostname | IPaddress)[:portrange]
 portrange = portnumber | -portnumber | portnumber-[portnumber]
 
The host is 表明するd as a DNS 指名する, as a 数値/数字による IP 演説(する)/住所, or as "localhost" (for the 地元の machine). The wildcard "*" may be 含むd once in a DNS 指名する host specification. If it is 含むd, it must be in the leftmost position, as in "*.sun.com".
The port or portrange is optional. A port specification of the form "N-", where N is a port number, signifies all ports numbered N and above, while a specification of the form "-N" 示すs all ports numbered N and below.

The possible ways to connect to the host are

  • 受託する
  • connect
  • listen
  • 解決する

The "listen" 活動/戦闘 is only meaningful when used with "localhost". The "解決する" (解決する host/ip 指名する service lookups) 活動/戦闘 is 暗示するd when any of the other 活動/戦闘s are 現在の.
As an example of the 創造 and meaning of SocketPermissions, 公式文書,認める that if the に引き続いて 許可
SocketPermission("foo.妨げる/法廷,弁護士業.com:7777", "connect,受託する");
is 認めるd, it 許すs to connect to port 7777 on foo.妨げる/法廷,弁護士業.com, and to 受託する 関係s on that port.
類似して, if the に引き続いて 許可
SocketPermission("localhost:1024-", "受託する,connect,listen");
is 認めるd, it 許すs that code to 受託する 関係s on, connect to, or listen on any port between 1024 and 65535 on the 地元の host.

@attention 認めるing code 許可 to 受託する or make 関係s to remote hosts may be dangerous because malevolent code can then more easily 移転 and 株 confidential data の中で parties who may not さもなければ have 接近 to the data.

Since
OOo 1.1.2

Elements' 要約
Host 的 host with optional portrange  
活動/戦闘s comma separated 活動/戦闘s 名簿(に載せる)/表(にあげる)  
Elements' 詳細(に述べる)s
Host
string Host;
Description
的 host with optional portrange
活動/戦闘s
string 活動/戦闘s;
Description
comma separated 活動/戦闘s 名簿(に載せる)/表(にあげる)
最高の,を越す of Page

Apache Software Foundation

Copyright & License | Privacy | 接触する Us | 寄付する | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are 登録(する)d trademarks of The Apache ソフトウェア 創立/基礎. The Apache feather logo is a trademark of The Apache ソフトウェア 創立/基礎. Other 指名するs appearing on the 場所/位置 may be trademarks of their 各々の owners.