Mono Class Library: System.Net.Sockets.NetworkStream Overview | MembersSystem.Net.Sockets.NetworkStream Constructor |
Constructs and initializes a new instance of the System.Net.Sockets.NetworkStream class. [Edit]
|
- socket
- An instance of the System.Net.Sockets.Socket class. [Edit]
Type Reason ArgumentNullException socket is null. [Edit] System.IO.IOException The Socket.Blocking property of socket is false.
-or-
The Socket.Connected property of socket is false.
-or-
The Socket.SocketType property of socket is not SocketType.Stream.
[Edit]
This constructor is equivalent to NetworkStream.NetworkStream(socket, System.IO.FileAccess.ReadWrite, false). [Edit]
Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0