Navigation
Unreal Engine C++ API Reference > Runtime > Sockets > FSocket
- FSocket::WaitForPendingConnection()
- FSocketEOS::WaitForPendingConnection()
References
Module | Sockets |
Header | /Engine/Source/Runtime/Sockets/Public/Sockets.h |
Include | #include "Sockets.h" |
bool WaitForPendingConnection
&40;
bool & bHasPendingConnection,
const FTimespan & WaitTime
&41;
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. |