Indy 9
TIdReuseSocket
See Also, Unit: IdGlobal
Indicates how IP addresses and port numbers are reused for listener threads in TCP servers.
TIdReuseSocket = (rsOSDependent, rsTrue, rsFalse);
Unit
IdGlobal
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:

  • rsOSDependent - Reuse IP addersses and port numbers when the OS platform is Linux.

  • rsTrue - Always resuse IP addersses and port numbers.

  • rsFalse - Never resuse IP addersses and port numbers.

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.


Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.