86 return ((this->
addr.sin_addr.S_un.S_addr == rhs.
addr.sin_addr.S_un.S_addr) &&
87 (this->addr.sin_port == rhs.
addr.sin_port));
96 if (this->
addr.sin_addr.S_un.S_addr == rhs.
addr.sin_addr.S_un.S_addr)
98 return this->
addr.sin_port < rhs.
addr.sin_port;
102 return this->
addr.sin_addr.S_un.S_addr < rhs.
addr.sin_addr.S_un.S_addr;
112 if (this->
addr.sin_addr.S_un.S_addr == rhs.
addr.sin_addr.S_un.S_addr)
114 return this->
addr.sin_port > rhs.
addr.sin_port;
118 return this->
addr.sin_addr.S_un.S_addr > rhs.
addr.sin_addr.S_un.S_addr;
An URI object can split a Uniform Resource Identifier string into its components or build a string fr...
Definition uri.h:67
Represents an IP address, consisting of a IPv4 host address and a port number.
Definition win32ipaddress.h:32
const Util::String & GetHostName() const
get host name
Definition win32ipaddress.cc:169
void SetPort(ushort port)
set port number
Definition win32ipaddress.cc:129
void SetHostName(const Util::String &hostName)
set host name
Definition win32ipaddress.cc:152
Util::String hostName
Definition win32ipaddress.h:75
const sockaddr_in & GetSockAddr() const
get sockaddr_in field
Definition win32ipaddress.cc:95
sockaddr_in addr
Definition win32ipaddress.h:77
void ExtractFromUri(const IO::URI &uri)
extract host name and port number from URI
Definition win32ipaddress.cc:108
bool operator==(const Win32IpAddress &rhs) const
equality operator
Definition win32ipaddress.h:84
bool operator>(const Win32IpAddress &rhs) const
greater-then operator
Definition win32ipaddress.h:110
ushort GetPort() const
get port number
Definition win32ipaddress.cc:139
static bool GetHostByName(const Util::String &hostName, in_addr &outAddr)
perform address resolution, understands special host names
Definition win32ipaddress.cc:205
void SetSockAddr(const sockaddr_in &addr)
set sockaddr_in directly
Definition win32ipaddress.cc:77
Win32IpAddress()
default constructor
Definition win32ipaddress.cc:18
bool operator<(const Win32IpAddress &rhs) const
less-then operator
Definition win32ipaddress.h:94
const Util::String & GetHostAddr() const
get the ip address resulting from the host name as string
Definition win32ipaddress.cc:179
static bool IsInetAddr(const in_addr *addr)
return true if an address is an internet address (not class A,B,C)
Definition win32ipaddress.cc:284
Util::String addrAsString
Definition win32ipaddress.h:76
A lowlevel socket wrapper class.
Definition win32socket.h:27
[TODO: Describe Win32 subsystem]
Nebula's universal string class.
Definition string.h:50
unsigned short ushort
Definition types.h:32