Mono Class Library: System.Net NamespaceSystem.Net.SocketPermission Class |
See Also: SocketPermission Members
System.Object
System.Security.CodeAccessPermission
System.Net.SocketPermission
|
All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.
System.Net.SocketPermission instances control permission to accept connections or initiate socket connections. A socket permission can secure access based on host name or IP address, a port number, and a transport protocol.
The XML encoding of a System.Net.SocketPermission instance is defined below in EBNF format, in particular the following conventions are used:
- All non-literals in the grammar below are shown in normal type.
- All literals are in bold font.
The following meta-language symbols are used:
- '*' represents a meta-language symbol suffixing an expression that can appear zero or more times.
- '?' represents a meta-language symbol suffixing an expression that can appear zero or one time.
- '+' represents a meta-language symbol suffixing an expression that can appear one or more times.
- '(',')' is used to group literals, non-literals or a mixture of literals and non-literals.
- '|' denotes an exclusive disjunction between two expressions.
- '::= ' denotes a production rule where a left hand non-literal is replaced by a right hand expression containing literals, non-literals or both.
BuildVersion refers to the build version of the shipping CLI. This is a dotted build number such as '2412.0'.
ECMAPubKeyToken ::= b77a5c561934e089
HostName refers to a host name such as www.contoso.com .
Portnumber denotes a int value indicating a port.
TransportProtocol ::= 1 | 2 | 3 /*1= UDP , 2 = TCP, 3 = both */
SocketPermissionXML::=
<IPermission class="
System.Net.SocketPermission,
System,
Version=1.0.BuildVersion,
Culture=neutral,
PublicKeyToken=ECMAPubKeyToken"
version="1"
(
Unrestricted="true"
)
|
>
(<ConnectAccess>
(
<ENDPOINT>HostName#PortNumber#TransportProtocol</ENDPOINT>
)+
</ConnectAccess>
)
|
>
(<AcceptAccess>
(
<ENDPOINT>HostName#PortNumber#TransportProtocol</ENDPOINT>
)+
</AcceptAccess>
</IPermission>
)
|
/>
[Edit]
Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.x.x, 1.0.5000.0, 2.0.0.0