In file NameClient/NameData.hh:

class NameData

Name data

Inheritance:


Public Methods

NameData (void)
default constructor
NameData (const std::string& Name, const MsgAddr& Addr, NameProcs PType=p_Any)
Data constructor.
virtual ~NameData (void)
Destructor.
const char* getName (void) const
Get the server name.
const MsgAddr& getAddr (void) const
get the server address.
void setAddr (const MsgAddr& addr)
set server address.
void fixAddr (const MsgAddr& from)
Fix ip address.
NameProcs getPType (void) const
Get process type.
const std::string& refName (void) const
Get the server name.
size_type size (void) const
Get the size.

Documentation

The name data class contains the data served by the name server.
NameData(void)
Construct a NameData object and clear all fields.

NameData(const std::string& Name, const MsgAddr& Addr, NameProcs PType=p_Any)
Construct a NameData object and set all fields as specified.
Parameters:
Name - Server name string.
Addr - IP address, port and sub-process of the server
PType - Process type of the server.

virtual ~NameData(void)
Destroy an object.

const char* getName(void) const
Get a pointer to a character array containing the server name. The pointer is valid only as long as the object exists.
Returns:
Pointer to a character array containing the server name.

const MsgAddr& getAddr(void) const
Return a constant reference to the server address. The reference is valid only as long as the object exists.
Returns:
Reference to the server address.

void setAddr(const MsgAddr& addr)
Set the server address.
Parameters:
addr - Address to which the NameData address field is set.

void fixAddr(const MsgAddr& from)
Resolve the ip-address in the NameData address field if it is set to "IP_ANY".
Parameters:
from - IP address of process that created the NameData.

NameProcs getPType(void) const
Get the server process type.
Returns:
Type of process described by NameData.

const std::string& refName(void) const
Get a refernce to a constant std::string containing the server name. The referecne is valid only as long as the object exists.
Returns:
Constant reference to a std::string eith the server name.

size_type size(void) const
Get the NameData object size in bytes.
Returns:
size of the namedata object.


This class has no child classes.
Author:
J. Zweizig
Version:
1.1; Modified 14-Jul-2000

alphabetic index hierarchy of classes


Please send questions and comments to zweizig_j@ligo.caltech.edu


generated by doc++