UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FUdpPingWorker Class Reference
+ Inheritance diagram for FUdpPingWorker:

Public Member Functions

 FUdpPingWorker (ISocketSubsystem *const InSocketSub, const TArray< FIcmpTarget > &InTargets, float Timeout, const FGotResultDelegate &InGotResultDelegate, const FStatusDelegate &InCompletionDelegate)
 
virtual ~FUdpPingWorker ()
 
virtual bool Init () override
 
virtual uint32 Run () override
 
virtual void Stop () override
 
virtual void Exit () override
 
bool IsCanceled () const
 
- Public Member Functions inherited from FRunnable
virtual class FSingleThreadRunnableGetSingleThreadInterface ()
 
virtual ~FRunnable ()
 

Constructor & Destructor Documentation

◆ FUdpPingWorker()

FUdpPingWorker::FUdpPingWorker ( ISocketSubsystem *const  InSocketSub,
const TArray< FIcmpTarget > &  InTargets,
float  Timeout,
const FGotResultDelegate InGotResultDelegate,
const FStatusDelegate InCompletionDelegate 
)

◆ ~FUdpPingWorker()

FUdpPingWorker::~FUdpPingWorker ( )
virtual

Member Function Documentation

◆ Exit()

void FUdpPingWorker::Exit ( void  )
overridevirtual

Exits the runnable object.

Called in the context of the aggregating thread to perform any cleanup.

See also
Init, Run, Stop

Reimplemented from FRunnable.

◆ Init()

bool FUdpPingWorker::Init ( void  )
overridevirtual

Initializes the runnable object.

This method is called in the context of the thread object that aggregates this, not the thread that passes this runnable to a new thread.

Returns
True if initialization was successful, false otherwise
See also
Run, Stop, Exit

Reimplemented from FRunnable.

◆ IsCanceled()

bool FUdpPingWorker::IsCanceled ( ) const

◆ Run()

uint32 FUdpPingWorker::Run ( )
overridevirtual

Runs the runnable object.

This is where all per object thread work is done. This is only called if the initialization was successful.

Returns
The exit code of the runnable object
See also
Init, Stop, Exit

Implements FRunnable.

◆ Stop()

void FUdpPingWorker::Stop ( void  )
overridevirtual

Stops the runnable object.

This is called if a thread is requested to terminate early.

See also
Init, Run, Exit

Reimplemented from FRunnable.


The documentation for this class was generated from the following file: