FSocket::Wait

Blocks until the specified condition is met.

Choose your operating system:

Windows

macOS

Linux

References

Module

Sockets

Header

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

Include

#include "Sockets.h"

Syntax

bool Wait
(
    ESocketWaitConditions::Type Condition,
    FTimespan WaitTime
)

Remarks

Blocks until the specified condition is met.

Returns

true if the condition was met, false if the time limit expired or an error occurred.

Parameters

Parameter

Description

Condition

The condition to wait for.

WaitTime

The maximum time to wait.