Navigation
API > API/Runtime > API/Runtime/Sockets > API/Runtime/Sockets/FSocket
References
| Module | Sockets |
| Header | /Engine/Source/Runtime/Sockets/Public/Sockets.h |
| Include | #include "Sockets.h" |
bool SetLinger
(
bool bShouldLinger,
int32 Timeout
)
Remarks
Sets whether and how long a socket will linger after closing. true if the call succeeded, false otherwise.
Parameters
| Name | Description |
|---|---|
| bShouldLinger | Whether to have the socket remain open for a time period after closing or not. |
| Timeout | The amount of time to linger before closing. |