/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
release-23.4
Code/Tools/Fileserve/Fileserve.h
39 строк
2 KB
Jan Krassnigg
Added .gitattributes file to enforce consistent line-endings (#872)
16 фев 2023, 20:57
Не верифицирован
16 фев 2023, 20:57
565458b
Код
Авторство
О чём код?
#pragma once #include <FileservePlugin/Fileserver/Fileserver.h> #include <Foundation/Application/Application.h> #include <Foundation/Communication/RemoteInterface.h> #include <Foundation/Types/UniquePtr.h> /// \brief A stand-alone application for the ezFileServer. /// /// If EZ_USE_QT is defined, the GUI from the EditorPluginFileserve is used. Otherwise the server runs as a console application. /// /// If the command line option "-fs_wait_timeout seconds" is specified, the server will wait for a limited time for any client to /// connect and close automatically, if no connection is established. Once a client connects, the timeout becomes irrelevant. /// If the command line option "-fs_close_timeout seconds" is specified, the application will automatically shut down when no /// client is connected anymore and a certain timeout is reached. Once a client connects, the timeout is reset. /// This timeout has no effect as long as no client has connected. class ezFileserverApp : public ezApplication { public: typedef ezApplication SUPER; ezFileserverApp() : ezApplication("Fileserve") { } virtual ezResult BeforeCoreSystemsStartup() override; virtual void AfterCoreSystemsStartup() override; virtual void BeforeCoreSystemsShutdown() override; virtual ezApplication::Execution Run() override; void FileserverEventHandlerConsole(const ezFileserverEvent& e); void FileserverEventHandler(const ezFileserverEvent& e); ezUInt32 m_uiSleepCounter = 0; ezUInt32 m_uiConnections = 0; ezTime m_CloseAppTimeout; ezTime m_TimeTillClosing; };