#include <Host.h>
Public Member Functions | |
Host () | |
Host (const std::string &name) | |
Host (const IpAddress &address) | |
Host (const hostent &host) | |
Host (const Host &host) | |
Host & | operator= (const Host &host) |
bool | operator== (const Host &host) const |
bool | operator< (const Host &host) const |
std::string | getName () const |
const std::vector< std::string > & | getAliases () const |
const std::vector< IpAddress > & | getIpAddresses () const |
bool | isDefined () const |
std::ostream & | operator<< (std::ostream &stream) const |
Static Public Member Functions | |
static const Host & | getLocalhost () |
Protected Member Functions | |
void | set (const std::string &name) |
void | set (const IpAddress &name) |
void | set (const hostent &host) |
Static Protected Member Functions | |
static bool | find (const std::string &name, struct hostent *data) throw () |
static bool | find (const IpAddress &address, struct hostent *data) throw () |
Private Attributes | |
std::string | hostName |
std::vector< std::string > | ipAliases |
std::vector< IpAddress > | ipAddresses |
Static Private Attributes | |
static std::auto_ptr< Host > | ipLocalhost |
Copyright (c) 2000 Jasen Plietz All rights reserved.
No warranties are extended. Use at your own risk.
To contact the author with suggestions or comments, use Jasen@plietz.net
Definition at line 36 of file Host.h.
|
Definition at line 78 of file Host.cpp. Referenced by getLocalhost(). |
|
Definition at line 48 of file Host.cpp. References set(). |
|
Definition at line 54 of file Host.cpp. References set(). |
|
Definition at line 83 of file Host.cpp. References set(). |
|
|
|
|
|
Definition at line 181 of file Host.cpp. Referenced by set(). |
|
Definition at line 101 of file Host.cpp. References ipAliases. |
|
Definition at line 60 of file Host.cpp. References ipAddresses. Referenced by IpAddress::setHostName(). |
|
Definition at line 125 of file Host.cpp. References Host(), and ipLocalhost. Referenced by IpAddress::getLocalIpAddress(), and NetworkStart(). |
|
Definition at line 107 of file Host.cpp. References hostName. Referenced by isDefined(), operator<(), operator<<(), and operator==(). |
|
Definition at line 94 of file Host.cpp. References getName(). Referenced by operator<<(), and IpAddress::setHostName(). |
|
Definition at line 72 of file Host.cpp. References getName(). |
|
Definition at line 28 of file Host.cpp. References getName(), ipAddresses, and isDefined(). |
|
Definition at line 113 of file Host.cpp. References hostName, ipAddresses, and ipAliases. |
|
Definition at line 66 of file Host.cpp. References getName(). |
|
Definition at line 167 of file Host.cpp. References hostName, ipAddresses, and ipAliases. |
|
Definition at line 154 of file Host.cpp. References find(), NetworkException::invalid_host, set(), and NetworkException::throwNetworkException(). |
|
Definition at line 144 of file Host.cpp. References find(), NetworkException::invalid_host, and NetworkException::throwNetworkException(). |
|
Definition at line 80 of file Host.h. Referenced by getName(), operator=(), and set(). |
|
Definition at line 82 of file Host.h. Referenced by getIpAddresses(), operator<<(), operator=(), and set(). |
|
Definition at line 81 of file Host.h. Referenced by getAliases(), operator=(), and set(). |
|
TcpServer Socket library Copyright (c) 2000 Jasen Plietz All rights reserved. No warranties are extended. Use at your own risk. To contact the author with suggestions or comments, use Jasen@plietz.net Definition at line 83 of file Host.h. Referenced by getLocalhost(). |