UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Icmp.cpp File Reference
#include "Icmp.h"
#include "HAL/ThreadSafeBool.h"
#include "Containers/Ticker.h"
#include "Async/Future.h"
#include "Async/Async.h"
#include "IcmpPrivate.h"
#include "SocketSubsystem.h"
#include "IPAddress.h"
#include "Misc/ConfigCacheIni.h"

Classes

class  FIcmpAsyncResult
 

Functions

FIcmpEchoResult IcmpEchoImpl (ISocketSubsystem *SocketSub, const FString &TargetAddress, float Timeout)
 
int CalculateChecksum (uint8 *Address, int Length)
 
bool ResolveIp (ISocketSubsystem *SocketSub, const FString &HostName, FString &OutIp)
 

Function Documentation

◆ CalculateChecksum()

int CalculateChecksum ( uint8 Address,
int  Length 
)

Calculate the 16-bit one's complement of the one's complement sum of the ICMP message starting at the beginning of the IcmpHeader

Parameters
Addressbyte array to calculate the checksum from
Lengthlength of the input byte array

◆ IcmpEchoImpl()

FIcmpEchoResult IcmpEchoImpl ( ISocketSubsystem SocketSub,
const FString &  TargetAddress,
float  Timeout 
)

◆ ResolveIp()

bool ResolveIp ( ISocketSubsystem SocketSub,
const FString &  HostName,
FString &  OutIp 
)

Convert a string based hostname (ipv4) to a valid ip address

Parameters
HostNamethe name of the host to look up
OutIp[out] the string to copy the IP address to
Returns
true if conversion was successful, false otherwise