Newer
Older
SkyFrontier-Project-IADE-UE4-3D / Source / SkyFrontier / Public / TCPClient.h
@Genexuz Genexuz on 6 Dec 2022 565 bytes idk matchmaking?
  1. // Fill out your copyright notice in the Description page of Project Settings.
  2. #pragma once
  3. #include "CoreMinimal.h"
  4. /**
  5. *
  6. */
  7. class SKYFRONTIER_API TCPClient : public FRunnable
  8. {
  9. public:
  10. TCPClient(class AMyPlayerState* pState);
  11. ~TCPClient();
  12. virtual bool Init();
  13. virtual uint32 Run();
  14. virtual void Stop();
  15. void CreateNewGameSession(FString sname);
  16. void JoinGameSession(int sID);
  17. bool IsConnected();
  18. private:
  19. FRunnableThread* Thread;
  20. FSocket* Socket;
  21. FSocket* ListenerSocket;
  22. bool running;
  23. bool connected;
  24. class AMyPlayerState* PlayerState;
  25. };