LosaDev source snapshot 2019
This commit is contained in:
commit
c198676e97
20588 files changed
+8812878
No files matched your search
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include "cServerSocket.h"
|
||||
|
||||
class cServerSocketManager
|
||||
{
|
||||
public:
|
||||
cServerSocketManager(void);
|
||||
~cServerSocketManager(void);
|
||||
|
||||
void Init();
|
||||
void Destroy();
|
||||
|
||||
public:
|
||||
BOOL AddSocket(const uint16 port, const int32 backlog, uint32& ID);
|
||||
cServerSocket* GetSocket(const uint32 ID);
|
||||
|
||||
const uint32 GetCount() { return m_sockets.size(); }
|
||||
|
||||
protected:
|
||||
typedef std::vector<cServerSocket*> SERVERSOCKETS;
|
||||
SERVERSOCKETS m_sockets;
|
||||
};
|
||||
Reference in new issue
Block a user