Last active
May 12, 2017 05:42
-
-
Save ryanjon2040/5ff19a50b9c25ad5713abbf369d7b247 to your computer and use it in GitHub Desktop.
Example header file for pinging EC2 UDp server http://wp.me/p2fInN-tA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Icmp.h" | |
/* Delegate to bind our custom function when we receive a reply from our EC2 UDP server */ | |
FIcmpEchoResultDelegate PingReult; | |
/* Sends a UDP echo to the given server and waits for a reply */ | |
UFUNCTION(BlueprintCallable) | |
void CheckIfServerIsOnline(FString ServerPublicIP, FString ServerPort); | |
/* Delegate called when we get a reply from our EC2 UDP server */ | |
void OnServerCheckFinished(FIcmpEchoResult Result); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment