DDraceNetwork Docs
host_lookup.h
Go to the documentation of this file.
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
9
10class CHostLookup : public IJob
11{
12private:
14 char m_aHostname[128];
17
18 void Run() override;
19
20public:
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
Definition: host_lookup.h:11
NETADDR Addr() const
Definition: host_lookup.h:27
int Nettype() const
Definition: host_lookup.h:26
int m_Nettype
Definition: host_lookup.h:15
char m_aHostname[128]
Definition: host_lookup.h:14
const char * Hostname() const
Definition: host_lookup.h:25
NETADDR m_Addr
Definition: host_lookup.h:16
int m_Result
Definition: host_lookup.h:13
int Result() const
Definition: host_lookup.h:24
void Run() override
Definition: host_lookup.cpp:17
Definition: jobs.h:20
Definition: types.h:67