forked from LosaDev/ls-2019-source
LosaDev source snapshot 2019
This commit is contained in:
commit
c198676e97
20588 files changed
+8812878
No files matched your search
@@ -0,0 +1,35 @@
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
#include <vector>
|
||||
#include "cSession.h"
|
||||
|
||||
|
||||
// ¼¼¼ÇÀ» °ü¸®ÇÏ´Â Å×À̺í
|
||||
class cSessionTable
|
||||
{
|
||||
public:
|
||||
cSessionTable(void);
|
||||
~cSessionTable(void);
|
||||
|
||||
void Init();
|
||||
void Destroy();
|
||||
|
||||
public:
|
||||
BOOL Insert(const uint32 entity, IIocpContext* context);
|
||||
void Remove(const uint32 entity);
|
||||
|
||||
uint32 GetCount() { return m_sessions.size(); }
|
||||
|
||||
cSession* Get(const uint32 entity);
|
||||
cSession* GetFirst();
|
||||
cSession* GetNext();
|
||||
|
||||
private:
|
||||
typedef std::map<uint32,cSession*> SESSION_TABLE;
|
||||
|
||||
SESSION_TABLE::iterator m_iterator;
|
||||
SESSION_TABLE m_sessions;
|
||||
};
|
||||
|
||||
extern cSessionTable g_sessionTable;
|
||||
Reference in new issue
Block a user