Linger

Socket option that specifies what should happen when the socket that promises reliable delivery still has untransmitted messages when it is closed.

Constructors

this
this(ushort timeout)

If timeout is 0, linger is disabled, otherwise enables the linger and sets the timeout.

this
this(LingerField l_onoff, LingerField l_linger)

System dependent constructor.

Members

Properties

enabled
bool enabled [@property getter]
enabled
bool enabled [@property setter]
time
ushort time [@property getter]
time
ushort time [@property setter]

Sets timeout period, to wait before closing the socket if the $(D_PSYMBOL Linger) is $(D_PSYMBOL enabled), ignored otherwise.

Variables

l_linger
LingerField l_linger;

Time, in seconds to wait before any buffered data to be sent is discarded.

l_onoff
LingerField l_onoff;

If nonzero, $(D_PSYMBOL close) and $(D_PSYMBOL shutdown) block until the data are transmitted or the timeout period has expired.

Meta