20 #ifndef CO_CONNECTIONDESCRIPTION_H
21 #define CO_CONNECTIONDESCRIPTION_H
24 #include <co/connectionType.h>
27 #include <lunchbox/referenced.h>
73 CO_API
void serialize( std::ostream& os )
const;
108 {
return !( *
this == rhs ); }
113 CO_API
void setHostname(
const std::string&
hostname );
114 CO_API
const std::string& getHostname()
const;
116 CO_API
void setInterface(
const std::string&
interfacename );
117 CO_API
const std::string& getInterface()
const;
119 CO_API
void setFilename(
const std::string&
filename );
120 CO_API
const std::string& getFilename()
const;
128 CO_API std::ostream& operator << ( std::ostream&,
129 const ConnectionDescription& );
147 #endif // CO_CONNECTION_DESCRIPTION_H
Describes Connection parameters.
Defines export visibility macros for Collage.
int32_t bandwidth
The bandwidth in kilobyte per second.
CO_API std::string serialize(const ConnectionDescriptions &)
Serialize a vector of connection descriptions to a string.
ConnectionType type
The network protocol for the connection.
CO_API void serialize(std::ostream &os) const
Serialize this description to a std::ostream.
uint16_t port
The listening port (TCPIP, SDP, IB, MCIP, RDMA).
bool operator!=(const ConnectionDescription &rhs) const
std::string interfacename
The host name of the interface (multicast).
ConnectionDescription()
Construct a new, default description.
CO_API std::string toString() const
std::string hostname
The hostname to bind or connect to.
CO_API bool operator==(const ConnectionDescription &rhs) const
CO_API bool fromString(std::string &data)
Read the connection description from a string.
ConnectionType
The supported network protocols.
std::vector< ConnectionDescriptionPtr > ConnectionDescriptions
A vector of ConnectionDescriptionPtr's.
CO_API bool deserialize(std::string &data, ConnectionDescriptions &descriptions)
Deserialize a vector or connection descriptions from a string.
lunchbox::RefPtr< const ConnectionDescription > ConstConnectionDescriptionPtr
A reference pointer for const ConnectionDescription pointers.
std::string filename
The filename used for named pipes.