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
std::string interfacename
The host name of the interface (multicast).
uint16_t port
The listening port (TCPIP, SDP, IB, MCIP, RDMA).
bool operator!=(const ConnectionDescription &rhs) const
Describes Connection parameters.
CO_API std::string serialize(const ConnectionDescriptions &)
Serialize a vector of connection descriptions to a string.
CO_API void serialize(std::ostream &os) const
Serialize this description to a std::ostream.
ConnectionDescription()
Construct a new, default description.
int32_t bandwidth
The bandwidth in kilobyte per second.
CO_API bool fromString(std::string &data)
Read the connection description from a string.
std::string hostname
The hostname to bind or connect to.
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.
std::string filename
The filename used for named pipes.
ConnectionType type
The network protocol for the connection.
lunchbox::RefPtr< const ConnectionDescription > ConstConnectionDescriptionPtr
A reference pointer for const ConnectionDescription pointers.
CO_API std::string toString() const
CO_API bool operator==(const ConnectionDescription &rhs) const