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 WaitForPendingConnection
(
bool & bHasPendingConnection,
const FTimespan & WaitTime
)
Remarks
Waits for a pending connection on the socket. true if successful, false otherwise.
Parameters
| Name | Description |
|---|---|
| out | bHasPendingConnection Will indicate whether a connection is pending or not. |
| WaitTime | The maximum time to wait for a connection. If zero, the function will not wait and will return immediately with a value in bHasPendingConnection. |