Class that represents an Internet address.
More...
Class that represents an Internet address.
This class contains information such as the IP address and port number.
- Revision History:
- 2012-04-19 Initial version.
nn::pia::common::InetAddress::InetAddress |
( |
u32 |
uiAddress, |
|
|
u16 |
uiPort |
|
) |
| |
Instantiates the object and initializes it with the IP address and port number specified.
- Parameters
-
[in] | uiAddress | The IP address. |
[in] | uiPort | Specifies the port number. |
nn::pia::common::InetAddress::InetAddress |
( |
const InetAddress & |
oInetAddress | ) |
|
Copy constructor.
- Parameters
-
[in] | oInetAddress | Specifies the object being copied. |
u32 nn::pia::common::InetAddress::GetAddress |
( |
| ) |
const |
|
inline |
Gets the IP address in host byte order.
- Returns
- Returns the IP address set for this object (in host byte order).
- See also
- SetAddress
void nn::pia::common::InetAddress::GetAddressString |
( |
String * |
pString | ) |
const |
Gets the address string notation. Address strings are represented in a format such as 255.255.255.255:80
.
- Parameters
-
[out] | pString | Specifies a pointer to the String object used to set the address string notation. |
s64 nn::pia::common::InetAddress::GetKey |
( |
| ) |
const |
Gets the key for comparison.
- Returns
- Returns the key for comparison.
u16 nn::pia::common::InetAddress::GetPort |
( |
| ) |
const |
|
inline |
Sets the port number in host byte order.
- Returns
- Returns the port number set for this object (in host byte order).
- See also
- SetPort
bool nn::pia::common::InetAddress::operator!= |
( |
const InetAddress & |
oInetAddress | ) |
const |
|
inline |
This is an equality operator.
- Parameters
-
[in] | oInetAddress | Specifies the object to compare. |
- Returns
- Returns
true
if this object and the one being compared to are not the same; returns false
otherwise.
bool nn::pia::common::InetAddress::operator< |
( |
const InetAddress & |
oInetAddress | ) |
const |
|
inline |
Comparison operator.
- Parameters
-
[in] | oInetAddress | Specifies the object to compare. |
- Returns
This is the assignment operator.
- Parameters
-
[in] | oInetAddress | The object to assign. |
- Returns
- See this object.
bool nn::pia::common::InetAddress::operator== |
( |
const InetAddress & |
oInetAddress | ) |
const |
|
inline |
This is an equality operator.
- Parameters
-
[in] | oInetAddress | Specifies the object to compare. |
- Returns
- Returns
true
if this object and the one being compared to are the same; returns false
otherwise.
void nn::pia::common::InetAddress::SetAddress |
( |
const u32 |
uiAddress | ) |
|
|
inline |
Sets the IP address in host byte order.
- Parameters
-
[in] | uiAddress | Specifies the IP address (in host byte order). |
- See also
- GetAddress
void nn::pia::common::InetAddress::SetPort |
( |
const u16 |
ui16Port | ) |
|
|
inline |
Sets the port number in host byte order.
- Parameters
-
[in] | ui16Port | Specifies the port number (in host byte order). |
- See also
- GetPort
void nn::pia::common::InetAddress::Trace |
( |
u64 |
uiTraceFlag | ) |
const |
Prints information that is useful for debugging.
- Parameters
-
[in] | uiTraceFlag | Bitwise OR of trace flags. For more information, see the TraceFlag type. |