20 #ifndef CO_CONNECTIONDESCRIPTION_H 21 #define CO_CONNECTIONDESCRIPTION_H 24 #include <co/connectionType.h> 27 #include <lunchbox/referenced.h> 77 CO_API
void serialize(std::ostream& os)
const;
113 return !(*
this == rhs);
119 CO_API
void setHostname(
const std::string& hostname);
120 CO_API
const std::string& getHostname()
const;
122 CO_API
void setInterface(
const std::string& interfacename);
123 CO_API
const std::string& getInterface()
const;
125 CO_API
void setFilename(
const std::string& filename);
126 CO_API
const std::string& getFilename()
const;
152 #endif // CO_CONNECTION_DESCRIPTION_H Describes Connection parameters.
Defines export visibility macros for library Collage.
int32_t bandwidth
The bandwidth in kilobyte per second.
std::vector< ConnectionDescriptionPtr > ConnectionDescriptions
A vector of ConnectionDescriptionPtr's.
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, IB, MCIP, RDMA).
bool operator!=(const ConnectionDescription &rhs) const
std::string interfacename
The host name of the interface (multicast).
Object-oriented network library.
ConnectionDescription()
Construct a new, default description.
lunchbox::RefPtr< const ConnectionDescription > ConstConnectionDescriptionPtr
A reference pointer for const ConnectionDescription pointers.
CO_API std::string toString() const
std::string hostname
The hostname to bind or connect to.
CO_API bool operator==(const ConnectionDescription &rhs) const
static const uint16_t RANDOM_MULTICAST_PORT
Use a random, instead of fixed, multicast port.
CO_API bool fromString(std::string &data)
Read the connection description from a string.
ConnectionType
The supported network protocols.
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.