Navigation
API > API/Runtime > API/Runtime/Icmp > API/Runtime/Icmp/FIcmp
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void IcmpEcho
(
const FString& TargetAddress, |
Send an ICMP echo packet and wait for a reply. | Icmp.h | |
static void IcmpEcho
(
const FString& TargetAddress, |
Send an ICMP echo packet and wait for a reply. | Icmp.h |
IcmpEcho(const FString &, float, FIcmpEchoResultCallback)
Description
Send an ICMP echo packet and wait for a reply.
The name resolution and ping send/receive will happen on a separate thread. The third argument is a callback function that will be invoked on the game thread after the a reply has been received from the target address, the timeout has expired, or if there was an error resolving the address or delivering the ICMP message to it.
Multiple pings can be issued concurrently and this function will ensure they're executed in turn in order not to mix ping replies from different nodes.
| Name | IcmpEcho |
| Type | function |
| Header File | /Engine/Source/Runtime/Online/ICMP/Public/Icmp.h |
| Include Path | #include "Icmp.h" |
| Source | /Engine/Source/Runtime/Online/ICMP/Private/Icmp.cpp |
static void IcmpEcho
(
const FString & TargetAddress,
float Timeout,
FIcmpEchoResultCallback HandleResult
)
Parameters
| Name | Remarks |
|---|---|
| TargetAddress | the target address to ping |
| Timeout | max time to wait for a reply |
| HandleResult | a callback function that will be called when the result is ready |
IcmpEcho(const FString &, float, FIcmpEchoResultDelegate)
Description
Send an ICMP echo packet and wait for a reply.
This is a wrapper around the above function, taking a delegate instead of a function argument.
| Name | IcmpEcho |
| Type | function |
| Header File | /Engine/Source/Runtime/Online/ICMP/Public/Icmp.h |
| Include Path | #include "Icmp.h" |
static void IcmpEcho
(
const FString & TargetAddress,
float Timeout,
FIcmpEchoResultDelegate ResultDelegate
)
Parameters
| Name | Remarks |
|---|---|
| TargetAddress | the target address to ping |
| Timeout | max time to wait for a reply |
| ResultDelegate | a delegate that will be called when the result is ready |