blob: b13bab80450c4daadde7c805e4a3a33c82020851 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include <zenhttp/httpplugin.h>
#if ZEN_WITH_PLUGINS
namespace zen {
class DllTransportPluginImpl;
/** Transport plugin which supports dynamic loading of external transport
* provider modules
*/
class DllTransportPlugin : public TransportPluginInterface, RefCounted
{
public:
DllTransportPlugin(uint16_t BasePort, unsigned int ThreadCount);
~DllTransportPlugin();
virtual uint32_t AddRef() const override;
virtual uint32_t Release() const override;
virtual void Initialize(TransportServerInterface* ServerInterface) override;
virtual void Shutdown() override;
virtual bool IsAvailable() override;
void LoadDll(std::string_view Name);
private:
std::unique_ptr<DllTransportPluginImpl> m_Impl;
};
} // namespace zen
#endif
|