Public Member Functions | Static Public Member Functions | Public Attributes

eq::net::ConnectionDescription Class Reference

Describes Connection parameters. More...

#include <connectionDescription.h>

Inheritance diagram for eq::net::ConnectionDescription:
Collaboration diagram for eq::net::ConnectionDescription:

List of all members.

Public Member Functions

 ConnectionDescription (const char *data)
bool operator== (const ConnectionDescription &rhs) const
bool operator!= (const ConnectionDescription &rhs) const
std::string toString () const
void serialize (std::ostream &os) const
bool fromString (std::string &data)
 Reads the connection description from a string.
Data Access

std::strings are not public because of DLL allocation issues.

void setHostname (const std::string &hostname)
const std::string & getHostname () const
void setInterface (const std::string &interfacename)
const std::string & getInterface () const
void setFilename (const std::string &filename)
const std::string & getFilename () const
bool isSameMulticastGroup (ConnectionDescriptionPtr rhs)

Static Public Member Functions

static const std::string & getSAttributeString (const SAttribute attr)
static const std::string & getIAttributeString (const IAttribute attr)

Public Attributes

ConnectionType type
 The network protocol for the connection.
int32_t bandwidth
 The bandwidth in kilobyte per second for this connection.
uint16_t port
 The listening port (TCPIP, SDP, IB, MCIP).

Public Types

Attributes
enum  SAttribute {
  SATTR_HOSTNAME, SATTR_FILENAME, SATTR_FILL1, SATTR_FILL2,
  SATTR_ALL
}
 

String attributes.


enum  IAttribute {
  IATTR_TYPE, IATTR_PORT, IATTR_BANDWIDTH, IATTR_FILL1,
  IATTR_FILL2, IATTR_ALL
}
 

Integer attributes.



Detailed Description

Describes Connection parameters.

See also:
Node

Definition at line 37 of file connectionDescription.h.


Member Function Documentation

bool eq::net::ConnectionDescription::fromString ( std::string &  data )

Reads the connection description from a string.

The string is consumed as the description is parsed. Two different formats are recognized, a human-readable and a machine-readable. The human-readable version has the format hostname[:port][:type] or filename:PIPE. The type parameter can be TCPIP, SDP, IB, MCIP, PGM or RSP. The machine-readable format contains all connection description parameters and is not documented.

Parameters:
datathe string containing the connection description.
Returns:
true if the information was read correctly, false if not.
bool eq::net::ConnectionDescription::operator!= ( const ConnectionDescription rhs ) const [inline]
Returns:
true if the two descriptions have the different values.

Definition at line 53 of file connectionDescription.h.

bool eq::net::ConnectionDescription::operator== ( const ConnectionDescription rhs ) const
Returns:
true if the two descriptions have the same values.
std::string eq::net::ConnectionDescription::toString (  ) const
Returns:
this description as a string.

Member Data Documentation

The bandwidth in kilobyte per second for this connection.

Definition at line 60 of file connectionDescription.h.

The listening port (TCPIP, SDP, IB, MCIP).

Definition at line 63 of file connectionDescription.h.

The network protocol for the connection.

Definition at line 57 of file connectionDescription.h.


The documentation for this class was generated from the following file:
Generated on Sat Dec 18 2010 15:02:13 for Equalizer 1.0-alpha by  1.7.2