StreamTools ThreadSafeStream Constructor (Stream, Boolean)NetworkComms.Net Help
Create a thread safe stream.

Namespace: NetworkCommsDotNet.Tools
Assembly: NetworkCommsDotNet (in NetworkCommsDotNet.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax

public ThreadSafeStream(
	Stream stream,
	bool closeStreamAfterSend
)

Parameters

stream
Type: OnlineSystem.IO Stream
The stream to make thread safe.
closeStreamAfterSend
Type: OnlineSystem Boolean
If true the provided stream will be disposed once data has been written to the network. If false the stream must be disposed of correctly by the user
See Also