2010-11-20 10:37:14 +00:00
|
|
|
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
|
|
|
|
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
2010-05-29 07:25:38 +00:00
|
|
|
#ifndef ENGINE_SHARED_E_ENGINE_H
|
|
|
|
#define ENGINE_SHARED_E_ENGINE_H
|
|
|
|
|
|
|
|
#include "jobs.h"
|
|
|
|
|
|
|
|
class CHostLookup
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CJob m_Job;
|
|
|
|
char m_aHostname[128];
|
|
|
|
NETADDR m_Addr;
|
|
|
|
};
|
|
|
|
|
|
|
|
class CEngine
|
|
|
|
{
|
|
|
|
class CJobPool m_HostLookupPool;
|
|
|
|
|
|
|
|
public:
|
|
|
|
void Init(const char *pAppname);
|
2010-08-06 18:38:13 +00:00
|
|
|
void InitLogfile();
|
2010-05-29 07:25:38 +00:00
|
|
|
void HostLookup(CHostLookup *pLookup, const char *pHostname);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|