Mentalis.org Security Library documentation

SecureNetworkStream Constructor (SecureSocket)

Creates a new instance of the SecureNetworkStream class for the specified SecureSocket.

[Visual Basic]
Overloads Public Sub New( _
   ByVal socket As SecureSocket _
)
[C#]
public SecureNetworkStream(
   SecureSocket socket
);

Parameters

socket
The SecureSocket that provides the network data.

Exceptions

Exception TypeCondition
ArgumentNullExceptionsocket is a null reference (Nothing in Visual Basic).
ArgumentExceptionsocket is not connected -or- the SocketType property of socket is not SocketType.Stream.
IOExceptionsocket is a nonblocking socket.

See Also

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