Skip to content

Instantly share code, notes, and snippets.

@ryanjon2040
Last active May 12, 2017 05:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanjon2040/5ff19a50b9c25ad5713abbf369d7b247 to your computer and use it in GitHub Desktop.
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
#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