Mentalis.org Security Library documentation

SecureSocket Constructor (AddressFamily, SocketType, ProtocolType, SecurityOptions)

Initializes a new instance of the SecureSocket class.

[Visual Basic]
Overloads Public Sub New( _
   ByVal addressFamily As AddressFamily, _
   ByVal socketType As SocketType, _
   ByVal protocolType As ProtocolType, _
   ByVal options As SecurityOptions _
)
[C#]
public SecureSocket(
   AddressFamily addressFamily,
   SocketType socketType,
   ProtocolType protocolType,
   SecurityOptions options
);

Parameters

addressFamily
One of the AddressFamily values.
socketType
One of the SocketType values.
protocolType
One of the ProtocolType values.
options
The SecurityOptions to use.

Exceptions

Exception TypeCondition
SecurityExceptionAn error occurs while changing the security protocol.

See Also

SecureSocket Class | SecureSocket Members | Org.Mentalis.Security.Ssl Namespace | SecureSocket Constructor Overload List