#include <IpAddress.h>
Public Member Functions | |
IpAddress (unsigned long code=INADDR_ANY) | |
IpAddress (const std::string &address) | |
IpAddress (const in_addr &address) | |
IpAddress (const IpAddress &address) | |
~IpAddress () | |
IpAddress & | operator= (const in_addr &address) |
IpAddress & | operator= (const IpAddress &address) |
bool | operator== (const IpAddress &address) const |
bool | operator< (const IpAddress &address) const |
std::ostream & | operator<< (std::ostream &stream) const |
operator in_addr () const | |
unsigned long | toLong () const throw () |
void | set (const std::string &string) |
void | set (unsigned long code) throw () |
void | setHostName (const std::string &hostName) |
bool | isLocal () const |
bool | isDefined () const |
Static Public Member Functions | |
static const IpAddress & | getLocalIpAddress () |
Private Attributes | |
in_addr | ipAddress |
Static Private Attributes | |
static std::auto_ptr< IpAddress > | localIpAddress |
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 34 of file IpAddress.h.
|
Definition at line 38 of file IpAddress.cpp. References set(). Referenced by getLocalIpAddress(). |
|
Definition at line 28 of file IpAddress.cpp. References set(), and setHostName(). |
|
Definition at line 45 of file IpAddress.cpp. |
|
Definition at line 51 of file IpAddress.cpp. |
|
Definition at line 56 of file IpAddress.cpp. |
|
Definition at line 132 of file IpAddress.cpp. References Host::getLocalhost(), IpAddress(), and localIpAddress. Referenced by isLocal(), and NetworkStart(). |
|
Definition at line 108 of file IpAddress.cpp. References ipAddress. |
|
Definition at line 96 of file IpAddress.cpp. References getLocalIpAddress(). |
|
Definition at line 102 of file IpAddress.cpp. References ipAddress. |
|
Definition at line 76 of file IpAddress.cpp. References toLong(). |
|
Definition at line 61 of file IpAddress.cpp. |
|
Definition at line 89 of file IpAddress.cpp. References ipAddress. |
|
Definition at line 82 of file IpAddress.cpp. References ipAddress. |
|
Definition at line 70 of file IpAddress.cpp. References toLong(). |
|
Definition at line 149 of file IpAddress.cpp. |
|
Definition at line 122 of file IpAddress.cpp. References NetworkException::invalid_address, ipAddress, and NetworkException::throwNetworkException(). Referenced by IpAddress(). |
|
Definition at line 114 of file IpAddress.cpp. References Host::getIpAddresses(), and Host::isDefined(). Referenced by IpAddress(). |
|
Definition at line 156 of file IpAddress.cpp. References ipAddress. Referenced by operator<(), operator<<(), operator==(), and SocketAddress::setIpAddress(). |
|
Definition at line 79 of file IpAddress.h. Referenced by isDefined(), operator in_addr(), operator<<(), operator=(), set(), and toLong(). |
|
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 82 of file IpAddress.h. Referenced by getLocalIpAddress(). |