26 lines
357 B
C++
26 lines
357 B
C++
// vim: ts=8 sw=4
|
|
#ifndef __INC_NETWORKBASE_H__
|
|
#define __INC_NETWORKBASE_H__
|
|
|
|
class CNetBase
|
|
{
|
|
public:
|
|
CNetBase();
|
|
virtual ~CNetBase();
|
|
|
|
protected:
|
|
static LPFDWATCH m_fdWatcher;
|
|
};
|
|
|
|
class CNetPoller : public CNetBase, public singleton<CNetPoller>
|
|
{
|
|
public:
|
|
CNetPoller();
|
|
virtual ~CNetPoller();
|
|
|
|
bool Create();
|
|
void Destroy();
|
|
};
|
|
|
|
#endif
|