SocketTools .NET Edition

SocketWrench.SocketOptions Enumeration

Specifies the options that the SocketWrench class supports.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

[Visual Basic]
<Flags>
Public Enum SocketWrench.SocketOptions
[C#]
[Flags]
public enum SocketWrench.SocketOptions

Remarks

The SocketWrench class uses the SocketOptions enumeration to specify one or more options to be used when establishing a connection with a remote host. Multiple options may be specified if necessary.

Members

Member Name Description Value
optionNone No option specified. 0
optionBroadcast This option specifies that broadcasting should be enabled for datagrams. This option is invalid for stream sockets. 1
optionDontRoute This option specifies default routing should not be used. This option should not be specified unless absolutely necessary. 2
optionKeepAlive This option specifies that packets are to be sent to the remote system when no data is being exchanged to keep the connection active. This option is only valid for stream sockets. 4
optionReuseAddress This option specifies that the local address can be reused. This option is commonly used by server applications. 8
optionNoDelay This option disables the Nagle algorithm, which buffers unacknowledged data and insures that a full-size packet can be sent to the remote host. 16
optionInLine This option specifies that out-of-band data should be received inline with the standard data stream. This option is only valid for stream sockets. 32
optionSecure This option specifies that a secure, encrypted connection will be established with the remote host. 4096
optionFreeThread This option specifies that class methods may be called from any thread, and not only the thread that established the connection. Using this option disables certain internal safety checks that are made by the class and may result in unexpected behavior unless you ensure that access to the class instance is synchronized across multiple threads. 524288

Requirements

Namespace: SocketTools

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

See Also

SocketTools Namespace