|
Collage
1.2.1
High-performance C++ library for developing object-oriented distributed applications.
|
Describes Connection parameters. More...
#include <connectionDescription.h>
Inheritance diagram for co::ConnectionDescription:
Collaboration diagram for co::ConnectionDescription:Public Member Functions | |
| ConnectionDescription () | |
| Construct a new, default description. More... | |
| ConnectionDescription (std::string &data) | |
| Construct a description from a string representation. More... | |
| CO_API void | serialize (std::ostream &os) const |
| Serialize this description to a std::ostream. More... | |
| CO_API std::string | toString () const |
| CO_API bool | fromString (std::string &data) |
| Read the connection description from a string. More... | |
Data Access | |
| CO_API bool | isSameMulticastGroup (ConstConnectionDescriptionPtr rhs) |
| CO_API bool | operator== (const ConnectionDescription &rhs) const |
| bool | operator!= (const ConnectionDescription &rhs) const |
Deprecated Data Access | |
| CO_API void | setHostname (const std::string &hostname) |
| CO_API const std::string & | getHostname () const |
| CO_API void | setInterface (const std::string &interfacename) |
| CO_API const std::string & | getInterface () const |
| CO_API void | setFilename (const std::string &filename) |
| CO_API const std::string & | getFilename () const |
Public Attributes | |
| ConnectionType | type |
| The network protocol for the connection. More... | |
| int32_t | bandwidth |
| The bandwidth in kilobyte per second. More... | |
| uint16_t | port |
| The listening port (TCPIP, SDP, IB, MCIP, RDMA). More... | |
| std::string | hostname |
| The hostname to bind or connect to. More... | |
| std::string | interfacename |
| The host name of the interface (multicast). More... | |
| std::string | filename |
| The filename used for named pipes. More... | |
Static Public Attributes | |
| static const uint16_t | RANDOM_MULTICAST_PORT = 1 |
| Use a random, instead of fixed, multicast port. More... | |
Describes Connection parameters.
Definition at line 32 of file connectionDescription.h.
|
inline |
Construct a new, default description.
Definition at line 57 of file connectionDescription.h.
|
explicit |
Construct a description from a string representation.
The given data is consumed, that is, the data string should be empty on return when a single description was given.
| CO_API bool co::ConnectionDescription::fromString | ( | std::string & | data | ) |
Read 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, UDT or RSP. The machine-readable format contains all connection description parameters, is not documented and subject to change.
| data | the string containing the connection description. |
|
inline |
Definition at line 110 of file connectionDescription.h.
| CO_API bool co::ConnectionDescription::operator== | ( | const ConnectionDescription & | rhs | ) | const |
| CO_API void co::ConnectionDescription::serialize | ( | std::ostream & | os | ) | const |
Serialize this description to a std::ostream.
| CO_API std::string co::ConnectionDescription::toString | ( | ) | const |
| int32_t co::ConnectionDescription::bandwidth |
The bandwidth in kilobyte per second.
Definition at line 39 of file connectionDescription.h.
| std::string co::ConnectionDescription::filename |
The filename used for named pipes.
Definition at line 54 of file connectionDescription.h.
| std::string co::ConnectionDescription::hostname |
The hostname to bind or connect to.
Definition at line 48 of file connectionDescription.h.
| std::string co::ConnectionDescription::interfacename |
The host name of the interface (multicast).
Definition at line 51 of file connectionDescription.h.
| uint16_t co::ConnectionDescription::port |
The listening port (TCPIP, SDP, IB, MCIP, RDMA).
Definition at line 42 of file connectionDescription.h.
|
static |
Use a random, instead of fixed, multicast port.
Definition at line 45 of file connectionDescription.h.
| ConnectionType co::ConnectionDescription::type |
The network protocol for the connection.
Definition at line 36 of file connectionDescription.h.