Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Fill out your copyright notice in the Description page of Project Settings.
- #pragma once
- #include "Kismet/BlueprintFunctionLibrary.h"
- #include "DrawDebugHelpers.h"
- #include "Networking.h"
- #include "Sockets.h"
- #include "SocketSubsystem.h"
- #include "GameServer.generated.h"
- /**
- *
- */
- UCLASS(BlueprintType, Blueprintable, Config = Engine)
- class TESTSPEL_API UGameServer : public UBlueprintFunctionLibrary
- {
- GENERATED_BODY()
- //FSocket Socket;
- //Connect to server function
- public:
- UFUNCTION(BlueprintCallable, Category = "UDP Networking")
- bool ConnectToServer(int32 port);
- //SendMessage to server, and recieve data
- UFUNCTION(BlueprintPure, Category = "UDP Networking")
- FString SendMessageToServer();
- FSocket* Socket;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement