The class serves as a container for computer address parameters for cluster mode. More...
#include <ms_computeraddress.hpp>
Public Member Functions | |
| ms_computeraddress () | |
| Default constructor. | |
| ms_computeraddress (const ms_computeraddress &src) | |
| Copying constructor. | |
| ~ms_computeraddress () | |
| Destructor. | |
| void | copyFrom (const ms_computeraddress *right) |
| Can be used to create a copy of another object. | |
| void | defaultValues () |
| Initialises the instance with default values. | |
| std::string | getHostName () const |
| Returns the host name. | |
| std::string | getInetAddress () const |
| Returns IP address of the host. | |
| unsigned int | getPort () const |
| Returns the port number for the host. | |
| ms_computeraddress & | operator= (const ms_computeraddress &right) |
| Assignment operator for C++ client applications. | |
| void | setHostName (const char *name) |
| Change the host name. | |
| void | setInetAddress (const char *address) |
| Change the IP address of the host. | |
| void | setPort (const unsigned int value) |
| Change the port number for the host. | |
The class serves as a container for computer address parameters for cluster mode.
| std::string getHostName | ( | ) | const |
Returns the host name.
Default is localhost.
| std::string getInetAddress | ( | ) | const |
Returns IP address of the host.
Default is "127.0.0.1".
| unsigned int getPort | ( | ) | const |
Returns the port number for the host.
Default is 0.
| void setHostName | ( | const char * | name | ) |
Change the host name.
| name | New host name to set |
| void setInetAddress | ( | const char * | address | ) |
Change the IP address of the host.
| address | New address to set |
| void setPort | ( | const unsigned int | value | ) |
Change the port number for the host.
| value | New port number to set |