Matrix Science Mascot Parser toolkit
 
Loading...
Searching...
No Matches
ms_computeraddress Class Reference

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_computeraddressoperator= (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.
 

Detailed Description

The class serves as a container for computer address parameters for cluster mode.

Member Function Documentation

◆ getHostName()

std::string getHostName ( ) const

Returns the host name.

Default is localhost.

Returns
Host name

◆ getInetAddress()

std::string getInetAddress ( ) const

Returns IP address of the host.

Default is "127.0.0.1".

Returns
IP address

◆ getPort()

unsigned int getPort ( ) const

Returns the port number for the host.

Default is 0.

Returns
Port number

◆ setHostName()

void setHostName ( const char *  name)

Change the host name.

Parameters
nameNew host name to set

◆ setInetAddress()

void setInetAddress ( const char *  address)

Change the IP address of the host.

Parameters
addressNew address to set

◆ setPort()

void setPort ( const unsigned int  value)

Change the port number for the host.

Parameters
valueNew port number to set

The documentation for this class was generated from the following files: