FSocket::WaitForPendingConnection

Waits for a pending connection on the socket.

Windows
MacOS
Linux

References

Module

Sockets

Header

/Engine/Source/Runtime/Sockets/Public/Sockets.h

Include

#include "Sockets.h"

Syntax

bool WaitForPendingConnection
(
    bool & bHasPendingConnection,
    const FTimespan & WaitTime
)

Remarks

Waits for a pending connection on the socket.

Returns

true if successful, false otherwise.

Parameters

Parameter

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss