Describes Connection parameters. More...
#include <connectionDescription.h>


Public Member Functions | |
| std::string | toString () const |
| void | serialize (std::ostream &os) const |
| bool | fromString (std::string &data) |
| Reads the connection description from a string. | |
Data Access | |
| void | setHostname (const std::string &hostname) |
| const std::string & | getHostname () const |
| void | setInterface (const std::string &interface) |
| const std::string & | getInterface () const |
| void | setFilename (const std::string &filename) |
| const std::string & | getFilename () const |
| bool | isSameMulticastGroup (ConnectionDescriptionPtr rhs) |
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). | |
Describes Connection parameters.
Definition at line 36 of file lib/net/connectionDescription.h.
| string eq::net::ConnectionDescription::toString | ( | ) | const |
Definition at line 61 of file lib/net/connectionDescription.cpp.
| 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.
| data | the string containing the connection description. |
true if the information was read correctly, false if not. Definition at line 75 of file lib/net/connectionDescription.cpp.
References bandwidth, eq::net::CONNECTIONTYPE_NAMEDPIPE, eq::net::CONNECTIONTYPE_TCPIP, EQWARN, port, and type.
The network protocol for the connection.
Definition at line 47 of file lib/net/connectionDescription.h.
Referenced by fromString().
The bandwidth in kilobyte per second for this connection.
Definition at line 50 of file lib/net/connectionDescription.h.
Referenced by fromString().
| uint16_t eq::net::ConnectionDescription::port |
The listening port (TCPIP, SDP, IB, MCIP).
Definition at line 53 of file lib/net/connectionDescription.h.
Referenced by fromString().
0.9.1 by
1.6.1