Mentalis.org Security Library documentation

SecureSocket Constructor (AddressFamily, SocketType, ProtocolType)

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 _
)
[C#]
public SecureSocket(
   AddressFamily addressFamily,
   SocketType socketType,
   ProtocolType protocolType
);

Parameters

addressFamily
One of the AddressFamily values.
socketType
One of the SocketType values.
protocolType
One of the ProtocolType values.

Remarks

The SecureSocket will act as a normal Socket and will not use a secure transfer protocol.

Exceptions

Exception TypeCondition
SocketExceptionThe combination of addressFamily, socketType, and protocolType results in an invalid socket.

See Also

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