Internet Direct (Indy) Version 9.0.2 Beta
TIdReuseSocket
Indicates how IP addresses and port numbers are reused for listener threads in TCP servers.

TIdReuseSocket = (rsOSDependent, rsTrue, rsFalse);
Description
TIdReuseSocket is an enumerated type that represents the manner in which socket reuse is supported in Indy TCP servers. TIdReuseSocket can contain one of the following values and associated meanings:

TIdReuseSocket is the type used to represent the TIdTCPServer.ReuseSocket property, and indicates if IP addresses and port numbers can be reused for TIdListenerThread instances used by the server.

A TIdReuseSocket value is used as an option for SetSockOpt when allocating the listener thread(s) after a server becomes Active.

The default behavior in Indy is rsOSDependent.