Advertisement
Guest User

Untitled

a guest
Feb 24th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.75 KB | None | 0 0
  1. // Fill out your copyright notice in the Description page of Project Settings.
  2.  
  3. #pragma once
  4.  
  5. #include "Kismet/BlueprintFunctionLibrary.h"
  6. #include "DrawDebugHelpers.h"
  7. #include "Networking.h"
  8. #include "Sockets.h"
  9. #include "SocketSubsystem.h"
  10. #include "GameServer.generated.h"
  11.  
  12. /**
  13.  *
  14.  */
  15. UCLASS(BlueprintType, Blueprintable, Config = Engine)
  16. class TESTSPEL_API UGameServer : public UBlueprintFunctionLibrary
  17. {
  18.     GENERATED_BODY()
  19.     //FSocket Socket;
  20.     //Connect to server function
  21. public:
  22.     UFUNCTION(BlueprintCallable, Category = "UDP Networking")
  23.     bool ConnectToServer(int32 port);
  24.  
  25.     //SendMessage to server, and recieve data
  26.     UFUNCTION(BlueprintPure, Category = "UDP Networking")
  27.     FString SendMessageToServer();
  28.  
  29.     FSocket* Socket;
  30.    
  31. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement