DDNet documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
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/types.h
>
7
8
#include <
engine/shared/jobs.h
>
9
10
class
CHostLookup
:
public
IJob
11
{
12
private
:
13
int
m_Result
;
14
char
m_aHostname
[128];
15
int
m_Nettype
;
16
NETADDR
m_Addr
;
17
18
void
Run
()
override
;
19
20
public
:
21
CHostLookup
(
const
char
*pHostname,
int
Nettype
);
22
23
int
Result
()
const
{
return
m_Result
; }
24
const
char
*
Hostname
()
const
{
return
m_aHostname
; }
25
int
Nettype
()
const
{
return
m_Nettype
; }
26
NETADDR
Addr
()
const
{
return
m_Addr
; }
27
};
28
29
#endif
CHostLookup::Addr
NETADDR Addr() const
Definition
host_lookup.h:26
CHostLookup::Nettype
int Nettype() const
Definition
host_lookup.h:25
CHostLookup::CHostLookup
CHostLookup(const char *pHostname, int Nettype)
Definition
host_lookup.cpp:9
CHostLookup::m_Nettype
int m_Nettype
Definition
host_lookup.h:15
CHostLookup::m_aHostname
char m_aHostname[128]
Definition
host_lookup.h:14
CHostLookup::Hostname
const char * Hostname() const
Definition
host_lookup.h:24
CHostLookup::m_Addr
NETADDR m_Addr
Definition
host_lookup.h:16
CHostLookup::m_Result
int m_Result
Definition
host_lookup.h:13
CHostLookup::Result
int Result() const
Definition
host_lookup.h:23
CHostLookup::Run
void Run() override
Definition
host_lookup.cpp:16
IJob::IJob
IJob()
Definition
jobs.cpp:11
jobs.h
NETADDR
Definition
types.h:168
types.h
src
engine
shared
host_lookup.h
Generated by
1.18.0