DDraceNetwork Documentation
Loading...
Searching...
No Matches
CHostLookup Class Reference

#include <host_lookup.h>

Inheritance diagram for CHostLookup:
[legend]
Collaboration diagram for CHostLookup:
[legend]

Public Member Functions

 CHostLookup ()
 CHostLookup (const char *pHostname, int Nettype)
int Result () const
const char * Hostname () const
int Nettype () const
NETADDR Addr () const
Public Member Functions inherited from IJob
 IJob ()
virtual ~IJob ()
 IJob (const IJob &Other)=delete
IJoboperator= (const IJob &Other)=delete
EJobState State () const
bool Done () const
virtual bool Abort ()
bool IsAbortable () const

Private Member Functions

void Run () override

Private Attributes

int m_Result
char m_aHostname [128]
int m_Nettype
NETADDR m_Addr

Additional Inherited Members

Public Types inherited from IJob
enum  EJobState { STATE_QUEUED = 0 , STATE_RUNNING , STATE_DONE , STATE_ABORTED }
Protected Member Functions inherited from IJob
void Abortable (bool Abortable)

Constructor & Destructor Documentation

◆ CHostLookup() [1/2]

CHostLookup::CHostLookup ( )
default

◆ CHostLookup() [2/2]

CHostLookup::CHostLookup ( const char * pHostname,
int Nettype )

Member Function Documentation

◆ Addr()

NETADDR CHostLookup::Addr ( ) const
inline

◆ Hostname()

const char * CHostLookup::Hostname ( ) const
inline

◆ Nettype()

int CHostLookup::Nettype ( ) const
inline

◆ Result()

int CHostLookup::Result ( ) const
inline

◆ Run()

void CHostLookup::Run ( )
overrideprivatevirtual

Performs tasks in a worker thread.

Implements IJob.

Member Data Documentation

◆ m_Addr

NETADDR CHostLookup::m_Addr
private

◆ m_aHostname

char CHostLookup::m_aHostname[128]
private

◆ m_Nettype

int CHostLookup::m_Nettype
private

◆ m_Result

int CHostLookup::m_Result
private

The documentation for this class was generated from the following files: