CTR-Pia
5.4.3
Game Communication Engine
|
インターネットアドレスを表現するクラスです。 [詳細]
Public メソッド | |
InetAddress () | |
デフォルトコンストラクタです。 IPアドレス、ポート番号はゼロクリアされた状態にセットされます。 | |
InetAddress (uint32_t uiAddress, uint16_t uiPort) | |
IPアドレスとポート番号を指定して初期化するコンストラクタです。 | |
InetAddress (const InetAddress &oInetAddress) | |
コピーコンストラクタです。 | |
~InetAddress () | |
デストラクタです。 | |
uint32_t | GetAddress () const |
ホストバイトオーダーでIPアドレスを取得します。 | |
void | GetAddressString (String *pString) const |
アドレスの文字列表記を得ます。 アドレス文字列は、 255.255.255.255:80 といった書式で表記されます。 | |
int64_t | GetKey () const |
比較用のキーを取得します。 | |
uint16_t | GetPort () const |
ホストバイトオーダーのポート番号を取得します。 | |
void | Init () |
オブジェクトの内容を初期化します。 | |
bool | operator!= (const InetAddress &oInetAddress) const |
等値演算子です。 | |
bool | operator< (const InetAddress &oInetAddress) const |
比較演算子です。 | |
InetAddress & | operator= (const InetAddress &oInetAddress) |
代入演算子です。 | |
bool | operator== (const InetAddress &oInetAddress) const |
等値演算子です。 | |
void | SetAddress (const uint32_t uiAddress) |
ホストバイトオーダーのIPアドレスを設定します。 | |
void | SetPort (const uint16_t ui16Port) |
ホストバイトオーダーのポート番号を設定します。 | |
void | Trace (uint64_t uiTraceFlag) const |
デバッグに有用な情報をプリントします。 | |
インターネットアドレスを表現するクラスです。
このクラスには、IPアドレス、ポート番号(共にホストバイトオーダー)などの情報が含まれます。
nn::pia::common::InetAddress::InetAddress | ( | uint32_t | uiAddress, |
uint16_t | uiPort | ||
) |
IPアドレスとポート番号を指定して初期化するコンストラクタです。
[in] | uiAddress | IPアドレス |
[in] | uiPort | ポート番号 |
nn::pia::common::InetAddress::InetAddress | ( | const InetAddress & | oInetAddress | ) |
コピーコンストラクタです。
[in] | oInetAddress | コピー対象のオブジェクト。 |
|
inline |
void nn::pia::common::InetAddress::GetAddressString | ( | String * | pString | ) | const |
アドレスの文字列表記を得ます。 アドレス文字列は、 255.255.255.255:80 といった書式で表記されます。
[out] | pString | アドレス文字列表記をセットするための String オブジェクトを指すポインタ。 |
int64_t nn::pia::common::InetAddress::GetKey | ( | ) | const |
比較用のキーを取得します。
|
inline |
|
inline |
等値演算子です。
[in] | oInetAddress | 比較対象のオブジェクトです。 |
|
inline |
比較演算子です。
[in] | oInetAddress | 比較対象のオブジェクトです。 |
InetAddress& nn::pia::common::InetAddress::operator= | ( | const InetAddress & | oInetAddress | ) |
代入演算子です。
[in] | oInetAddress | 代入するオブジェクトです。 |
|
inline |
等値演算子です。
[in] | oInetAddress | 比較対象のオブジェクトです。 |
|
inline |
|
inline |
void nn::pia::common::InetAddress::Trace | ( | uint64_t | uiTraceFlag | ) | const |
デバッグに有用な情報をプリントします。
[in] | uiTraceFlag | トレースフラグの論理和。詳細は TraceFlag 型を参照してください。 |