Files
UE_SpaceStudio/SpaceStudioClient/Plugins/SocketServer/Source/SocketServer/Public/SocketServerCleanerThread.h
T
2025-09-15 17:17:30 +08:00

26 lines
530 B
C++

// Copyright 2022 David Romanski (Socke). All Rights Reserved.
#pragma once
#include "SocketServer.h"
class SOCKETSERVER_API FSocketServerCleanerThread : public FRunnable {
public:
FSocketServerCleanerThread();
virtual uint32 Run() override;
void addSession(FSocketServerPluginSession& session);
void changeSettings(bool showLogs, int32 minLiveTimeInSeconds);
private:
bool showLogs = false;
int32 minLiveTimeInSeconds = 10;
FRunnableThread* thread = nullptr;
TQueue<FSocketServerPluginSession> sessionQueue;
};