LosaDev source snapshot 2019

This commit is contained in:
LosaDev committed 2026-11-07 13:30:45 +07:00
commit c198676e97
20588 files changed
+8812878

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
#pragma once
class IProcessor;
class ISystem
{
public:
ISystem(void);
~ISystem(void);
void Init();
void Destroy();
public:
BOOL Startup(
const uint32 maxSession,
const uint32 maxPacket,
const uint32 maxQueue,
const uint32 encoding=0) const;
void Cleanup() const;
BOOL Start(const int32 workerCount = 4, const int32 commandCount = 1, const int32 connectorCount = 0) const;
void Stop() const;
void SetProcessor(IProcessor* processor) const;
void SetEvent(const uint32 connectId, const uint32 disconnectId) const;
BOOL Listen(const uint16 port, const uint32 backlog) const;
BOOL Connect(const uint32 serverId, const TCHAR* IP, const uint16 port) const;
BOOL Call(const uint32 command, const uint8* buffer, const uint32 length) const;
};