faudes::SimplenetAddress Class Reference
#include <iop_simplenet.h>
List of all members.
Detailed Description
Simplenet node address.
A node address consists of an ip address and a tcp port. This convenience class implements string based access to both components.
Definition at line 43 of file iop_simplenet.h.
|
Public Member Functions |
| SimplenetAddress (void) |
| Default constructor.
|
| SimplenetAddress (const SimplenetAddress &rOther) |
| Copy construct.
|
| SimplenetAddress (const std::string &rString) |
| Construct from string.
|
bool | Valid (void) const |
| Return true if valid.
|
std::string | Ip (void) const |
| Get ip address.
|
int | Port (void) const |
| Get tcp port.
|
std::string | IpColonPort (void) const |
| Get as colon seperated string.
|
void | Ip (std::string ip) |
| Set ip address.
|
void | Port (int port) |
| Set tcp port.
|
void | IpColonPort (std::string ipcolonport) |
| Set from colon seperated string.
|
bool | operator< (const SimplenetAddress &rOther) const |
| Order for sorting containers of addresses.
|
Protected Attributes |
std::string | mIp |
| Ip address.
|
int | mPort |
| Tcp port.
|
Constructor & Destructor Documentation
faudes::SimplenetAddress::SimplenetAddress |
( |
void |
|
) |
|
faudes::SimplenetAddress::SimplenetAddress |
( |
const std::string & |
rString |
) |
|
Member Function Documentation
bool faudes::SimplenetAddress::Valid |
( |
void |
|
) |
const |
std::string faudes::SimplenetAddress::Ip |
( |
void |
|
) |
const [inline] |
int faudes::SimplenetAddress::Port |
( |
void |
|
) |
const [inline] |
std::string faudes::SimplenetAddress::IpColonPort |
( |
void |
|
) |
const |
void faudes::SimplenetAddress::Ip |
( |
std::string |
ip |
) |
[inline] |
void faudes::SimplenetAddress::Port |
( |
int |
port |
) |
[inline] |
void faudes::SimplenetAddress::IpColonPort |
( |
std::string |
ipcolonport |
) |
|
bool faudes::SimplenetAddress::operator< |
( |
const SimplenetAddress & |
rOther |
) |
const |
Member Data Documentation
The documentation for this class was generated from the following files: