OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::THostEntry Class Reference

THostEntry encapsulates the attributes of a host (hostent). More...

#include <owl/wskhostm.h>

Inheritance diagram for owl::THostEntry:

Public Member Functions

 THostEntry ()
 Constructor of THostEntry object. Initializes members describing host to 0.
 
int GetAddressCount ()
 Returns the number of pointers to addresses in the hostent (parent class of THostEntry).
 
ulong GetINetAddress ()
 Returns the Internet address of the host.
 
ulong GetNthINetAddress (int nIndex=0)
 An internet addressing -specific function.
 

Detailed Description

THostEntry encapsulates the attributes of a host (hostent).

Definition at line 67 of file wskhostm.h.

Constructor & Destructor Documentation

◆ THostEntry()

owl::THostEntry::THostEntry ( )

Constructor of THostEntry object. Initializes members describing host to 0.

Definition at line 50 of file wskhostm.cpp.

Member Function Documentation

◆ GetAddressCount()

int owl::THostEntry::GetAddressCount ( )

Returns the number of pointers to addresses in the hostent (parent class of THostEntry).

Definition at line 63 of file wskhostm.cpp.

◆ GetINetAddress()

ulong owl::THostEntry::GetINetAddress ( )
inline

Returns the Internet address of the host.

Definition at line 139 of file wskhostm.h.

References GetNthINetAddress().

◆ GetNthINetAddress()

ulong owl::THostEntry::GetNthINetAddress ( int index = 0)

An internet addressing -specific function.

This function returns the indexed internet address in unsigned long form.

The index must be between 0 and the number of address counts (see GetAddressCount()).

Note
This function is FLAWED in that it is internet addressing-specific (AF_INET/PF_INET). The proper way to implement this function would be to look at h_addrtype and h_length to determine the nature of the address type and return something useful or make a derived class that knows about each address family. (...)

Definition at line 84 of file wskhostm.cpp.

References GetAddressCount().


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