FLImaging
7.8.25.3
Toggle main menu visibility
FLImagingDevices
FLImagingDevices
DeviceSocketServer.h
1
#pragma once
9
10
#include "DeviceSocketBase.h"
11
13
namespace
FLImaging
14
{
16
namespace
Devices
17
{
18
class
CDeviceSocketClient
;
19
class
CDeviceSocketClientManager;
20
28
class
FL_EXPORT
CDeviceSocketServer
:
public
CDeviceSocketBase
29
{
30
public
:
38
CDeviceSocketServer
();
39
47
virtual
~CDeviceSocketServer
();
48
49
virtual
const
CResult
Initialize
()
override
;
50
virtual
const
CResult
Terminate
()
override
;
51
67
virtual
const
CResult
SendAll
(
const
CDeviceSocketPacket
& packet);
68
84
virtual
const
CResult
SendAll
(
const
CDeviceSocketPacket
* pSocketPacket);
85
99
virtual
const
CResult
SetAllowedMaxClients
(int32_t i32AllowedMaxClients = -1);
100
110
virtual
int32_t
GetAllowedMaxClients
()
const
;
111
123
CDeviceSocketClientManager*
GetSocketClientManager
()
const
;
124
125
virtual
int64_t
GetClassType
()
const override
;
126
127
protected
:
128
129
CDeviceSocketClientManager* m_pSocketClientManager;
130
HANDLE m_hListingThreadHandle;
131
139
volatile
int32_t
m_i32AllowedMaxClients
;
140
141
static
unsigned
__stdcall ListeningThread(
void
* arg);
142
143
friend
class
CDeviceSocketClientManager;
144
};
145
}
146
}
147
FLImaging::CResult
FLImaging module execution result object.
Definition
ResultsDef.h:1704
FLImaging::Devices::CDeviceSocketBase::CDeviceSocketBase
CDeviceSocketBase()
Default constructor.
FLImaging::Devices::CDeviceSocketClient
Socket client class.
Definition
DeviceSocketClient.h:25
FLImaging::Devices::CDeviceSocketPacket
Socket packet class.
Definition
DeviceSocketPacket.h:22
FLImaging::Devices::CDeviceSocketServer::SendAll
virtual const CResult SendAll(const CDeviceSocketPacket *pSocketPacket)
Sends a packet to all connected sockets.
FLImaging::Devices::CDeviceSocketServer::SendAll
virtual const CResult SendAll(const CDeviceSocketPacket &packet)
Sends a packet to all connected sockets.
FLImaging::Devices::CDeviceSocketServer::CDeviceSocketServer
CDeviceSocketServer()
Default constructor.
FLImaging::Devices::CDeviceSocketServer::GetSocketClientManager
CDeviceSocketClientManager * GetSocketClientManager() const
Get the CDeviceSocketClientManager object of the member variable.
FLImaging::Devices::CDeviceSocketServer::SetAllowedMaxClients
virtual const CResult SetAllowedMaxClients(int32_t i32AllowedMaxClients=-1)
Sets the maximum number of allowed clients.
FLImaging::Devices::CDeviceSocketServer::Initialize
virtual const CResult Initialize() override
Perform socket initialization. Socket mode settings and connection information settings must be done ...
FLImaging::Devices::CDeviceSocketServer::Terminate
virtual const CResult Terminate() override
Perform socket shutdown.
FLImaging::Devices::CDeviceSocketServer::m_i32AllowedMaxClients
volatile int32_t m_i32AllowedMaxClients
Definition
DeviceSocketServer.h:139
FLImaging::Devices::CDeviceSocketServer::GetAllowedMaxClients
virtual int32_t GetAllowedMaxClients() const
Returns the configured maximum number of allowed clients.
FLImaging::Devices::CDeviceSocketServer::GetClassType
virtual int64_t GetClassType() const override
Returns the Type value of Class. The returned value itself has no meaning, but if it is the same type...
FLImaging::Devices::CDeviceSocketServer::~CDeviceSocketServer
virtual ~CDeviceSocketServer()
Default destructor.
FLImaging::Devices
Definition
AutoFileCleaner.h:19
FLImaging
Generated on
for FLImaging by
1.17.0