If timeout is 0, linger is disabled, otherwise enables the linger and sets the timeout.
Timeout, in seconds.
{ auto linger = Linger(5); assert(linger.enabled); assert(linger.time == 5); } { auto linger = Linger(0); assert(!linger.enabled); } { // Default constructor. Linger linger; assert(!linger.enabled); }
See Implementation
If timeout is 0, linger is disabled, otherwise enables the linger and sets the timeout.