UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
IcmpPrivate.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6
7// Module includes
8
9#ifndef PLATFORM_SUPPORTS_ICMP
10
11 #if PLATFORM_WINDOWS
12
13 #define PLATFORM_SUPPORTS_ICMP 1
14 #define PLATFORM_USES_POSIX_ICMP 0
15 #define PING_ALLOWS_CUSTOM_THREAD_SIZE 1
16
17 #elif PLATFORM_MAC
18
19 #define PLATFORM_SUPPORTS_ICMP 1
20 #define PLATFORM_USES_POSIX_ICMP 1
21 #define PING_ALLOWS_CUSTOM_THREAD_SIZE 0
22
23 #elif PLATFORM_UNIX
24
25 #define PLATFORM_SUPPORTS_ICMP 1
26 #define PLATFORM_USES_POSIX_ICMP 1
27 #define PING_ALLOWS_CUSTOM_THREAD_SIZE 0
28
29 #elif PLATFORM_ANDROID
30
31 #define PLATFORM_SUPPORTS_ICMP 1
32 #define PLATFORM_USES_POSIX_ICMP 1
33 #define PING_ALLOWS_CUSTOM_THREAD_SIZE 0
34
35 #elif PLATFORM_IOS
36
37 #define PLATFORM_SUPPORTS_ICMP 1
38 #define PLATFORM_USES_POSIX_ICMP 1
39 #define PING_ALLOWS_CUSTOM_THREAD_SIZE 1
40
41 #else
42
43 #define PLATFORM_SUPPORTS_ICMP 0
44 #define PLATFORM_USES_POSIX_ICMP 0
45 #define PING_ALLOWS_CUSTOM_THREAD_SIZE 0
46
47 #endif
48
49#endif // PLATFORM_SUPPORTS_ICMP
50
52
60int CalculateChecksum(uint8* Address, int Length);
61
70bool ResolveIp(ISocketSubsystem* SocketSub, const FString& HostName, FString& OutIp);
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
int CalculateChecksum(uint8 *Address, int Length)
Definition Icmp.cpp:25
bool ResolveIp(ISocketSubsystem *SocketSub, const FString &HostName, FString &OutIp)
Definition Icmp.cpp:50
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition SocketSubsystem.h:58