Collage
1.0.1
Object-Oriented C++ Network Library
|
Describes Connection parameters. More...
#include <connectionDescription.h>
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... | |
Describes Connection parameters.
Definition at line 32 of file connectionDescription.h.
|
inline |
Construct a new, default description.
Definition at line 54 of file connectionDescription.h.
co::ConnectionDescription::ConnectionDescription | ( | std::string & | data | ) |
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 107 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 51 of file connectionDescription.h.
std::string co::ConnectionDescription::hostname |
The hostname to bind or connect to.
Definition at line 45 of file connectionDescription.h.
std::string co::ConnectionDescription::interfacename |
The host name of the interface (multicast).
Definition at line 48 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.
ConnectionType co::ConnectionDescription::type |
The network protocol for the connection.
Definition at line 36 of file connectionDescription.h.