3#include <FileservePlugin/Fileserver/ClientContext.h>
4#include <Foundation/Communication/RemoteInterface.h>
5#include <Foundation/Configuration/Singleton.h>
6#include <Foundation/Containers/HashTable.h>
7#include <Foundation/Types/UniquePtr.h>
8#include <Foundation/Types/Uuid.h>
36 Type m_Type = Type::None;
37 plUInt32 m_uiClientID = 0;
38 const char* m_szName =
nullptr;
39 const char* m_szPath =
nullptr;
40 const char* m_szRedirectedPath =
nullptr;
41 plUInt32 m_uiSizeTotal = 0;
42 plUInt32 m_uiSentTotal = 0;
43 plFileserveFileState m_FileState = plFileserveFileState::None;
75 bool IsServerRunning()
const;
78 void SetPort(plUInt16 uiPort);
82 plUInt16
GetPort()
const {
return m_uiPort; }
88 void BroadcastReloadResourcesCommand();
109 void LogCustomActivity(
const char* szText);
117 plUInt32 m_uiFileUploadSize;
118 plUInt16 m_uiPort = 1042;
This class encapsulates an array and it's size. It is recommended to use this class instead of plain ...
Definition ArrayPtr.h:37
Definition DynamicArray.h:81
Definition ClientContext.h:18
A file server allows to serve files from a host PC to another process that is potentially on another ...
Definition Fileserver.h:59
plUInt16 GetPort() const
Returns the currently set port. If the command line option "-fs_port X" was used, this will return th...
Definition Fileserver.h:82
plEvent< const plFileserverEvent & > m_Events
The server broadcasts events about its activity.
Definition Fileserver.h:85
Definition HashTable.h:333
Definition RemoteInterface.h:60
Encapsulates all the data that is transmitted when sending or receiving a message with plRemoteInterf...
Definition RemoteMessage.h:11
plStringBuilder is a class that is meant for creating and modifying strings.
Definition StringBuilder.h:35
A Unique ptr manages an object and destroys that object when it goes out of scope....
Definition UniquePtr.h:10
This data type is the abstraction for 128-bit Uuid (also known as GUID) instances.
Definition Uuid.h:11
A generic delegate class which supports static functions and member functions.
Definition Delegate.h:76
Definition Fileserver.h:13
Event type for connections.
Definition RemoteInterface.h:33
Default enum for returning failure or success, instead of using a bool.
Definition Types.h:54
The time class encapsulates a double value storing the time in seconds.
Definition Time.h:12
PL_ALWAYS_INLINE static constexpr plTime MakeFromSeconds(double fSeconds)
Creates an instance of plTime that was initialized from seconds.
Definition Time.h:30