Internet Direct (Indy)
Home
PreviousUpNext
TIdSocketOption Type

Type used to represent a named option when setting socket options.

Pascal
TIdSocketOption = SocketOptionName;

TIdSocketOption is a type that represents a named socket option used when setting socket options for a socket handle. 

For the .Net platform, TIdSocketOption is declared as a SocketOptionName value as used in the .NET framework. 

For all other platforms, TIdSocketOption is declared as an Integer value. 

There are two types of socket options: Boolean options that enable or disable a feature or behavior, and options that require an integer value. 

To enable a Boolean option, the option value points to a nonzero integer. To disable the option the option value points to an integer equal to zero. For other options, the option value points to the integer that contains the desired value for the option. 

The following options are supported for setting socket options. For default values of these options, see the description. The Type identifies the type of data addressed by the option value. 

 

Level Value Type Meaning 
 

---------- ----------------- -------- ------------------------------

 

SOL_SOCKET Id_SO_BROADCAST Boolean Allows transmission of broadcast messages on the socket. 
SOL_SOCKET Id_SO_DEBUG Boolean Records debugging information. 
SOL_SOCKET Id_SO_DONTROUTE Boolean Does not route: sends directly to the network interface. 
SOL_SOCKET Id_SO_KEEPALIVE Boolean Sends keep-alives. 
SOL_SOCKET Id_SO_LINGER LINGER Lingers on close if unsent data is present. 
SOL_SOCKET Id_SO_OOBINLINE Boolean Receives OOB data in the normal data stream. 
SOL_SOCKET Id_SO_RCVBUF Integer Specifies the total per-socket buffer space reserved for receives. This is unrelated to SO_MAX_MSG_SIZE or the size of a TCP window. 
SOL_SOCKET Id_SO_REUSEADDR Boolean Allows the socket to be bound to an address that is already in use. 
SOL_SOCKET Id_SO_SNDBUF Integer Specifies the total per-socket buffer space reserved for sends. This is unrelated to SO_MAX_MSG_SIZE or the size of a TCP window. 
SOL_SOCKET Id_SO_RCVTIMEO Integer Receive time-out in milliseconds. 
SOL_SOCKET Id_SO_SNDTIMEO Integer Sends time-out in milliseconds. 
IPPROTO_TCP Id_TCP_NODELAY Boolean Disables the Nagle algorithm for send coalescing. 
Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.