SocketTools .NET Edition

SocketWrench.SocketStream Enumeration

Specifies the data stream options that the SocketWrench class supports.

[Visual Basic]
Public Enum SocketWrench.SocketStream
[C#]
public enum SocketWrench.SocketStream

Remarks

The SocketWrench class uses the SocketStream enumeration to specify how data should be processed when read from a socket using either the ReadStream or StoreStream methods.

Members

Member Name Description
streamDefault The data stream will be returned to the caller unmodified. This option should always be used with binary data or data being stored in a byte array. If no options are specified, this is the default option used by this method.
streamConvert The data stream is considered to be textual and will be modified so that end-of-line character sequences are converted to follow standard Windows conventions. This will ensure that all lines of text are terminated with a carriage-return and linefeed sequence. Because this option modifies the data stream, it should never be used with binary data. Using this option may result in the amount of data returned in the buffer to be larger than the source data. For example, if the source data only terminates a line of text with a single linefeed, this option will have the effect of inserting a carriage-return character before each linefeed.

Requirements

Namespace: SocketTools

Assembly: SocketTools.SocketWrench (in SocketTools.SocketWrench.dll)

See Also

SocketTools Namespace | ReadStream Method | StoreStream Method