Mono Class Library: System.Net.Sockets Namespace

System.Net.Sockets.NetworkStream Class

Implements the standard stream mechanism to read and write network data through an instance of the System.Net.Sockets.Socket class. [Edit]

See Also: NetworkStream Members

System.Object
     System.MarshalByRefObject
          System.IO.Stream
               System.Net.Sockets.NetworkStream

public class NetworkStream : System.IO.Stream

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.

Remarks

The System.Net.Sockets.NetworkStream class allows network data to be read and written in the same manner as the System.IO.Stream class.

This class supports simultaneous synchronous and asynchronous access to the network data. Random access is not supported and thus the NetworkStream.CanSeek property always returns false.

The following properties and methods inherited from the System.IO.Stream class are not supported and throw a NotSupportedException exception when accessed:

The NetworkStream.Flush method is reserved for future use but does not throw an exception.

[Edit]

Requirements

Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Assembly Versions: 1.0.x.x, 1.0.5000.0, 2.0.0.0