1/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
2/* If you are missing that file, acquire a complete release at teeworlds.com. */
3#ifndef ENGINE_SHARED_HOST_LOOKUP_H
4#define ENGINE_SHARED_HOST_LOOKUP_H
5
6#include <base/system.h>
7
8#include <engine/shared/jobs.h>
9
10class CHostLookup : public IJob
11{
12private:
13 int m_Result;
14 char m_aHostname[128];
15 int m_Nettype;
16 NETADDR m_Addr;
17
18 void Run() override;
19
20public:
21 CHostLookup();
22 CHostLookup(const char *pHostname, int Nettype);
23
24 int Result() const { return m_Result; }
25 const char *Hostname() const { return m_aHostname; }
26 int Nettype() const { return m_Nettype; }
27 NETADDR Addr() const { return m_Addr; }
28};
29
30#endif
31