20 #ifndef CO_CONNECTIONDESCRIPTION_H 
   21 #define CO_CONNECTIONDESCRIPTION_H 
   24 #include <co/connectionType.h>  
   27 #include <lunchbox/referenced.h>  
   61         , filename( 
"default" )
 
   76     CO_API 
void serialize( std::ostream& os ) 
const;
 
  111     { 
return !( *
this == rhs ); }
 
  116     CO_API 
void setHostname( 
const std::string& hostname );
 
  117     CO_API 
const std::string& getHostname() 
const;
 
  119     CO_API 
void setInterface( 
const std::string& interfacename );
 
  120     CO_API 
const std::string& getInterface() 
const;
 
  122     CO_API 
void setFilename( 
const std::string& filename );
 
  123     CO_API 
const std::string& getFilename() 
const;
 
  131 CO_API std::ostream& operator << ( std::ostream&,
 
  132                                    const ConnectionDescription& );
 
  150 #endif // CO_CONNECTION_DESCRIPTION_H 
Describes Connection parameters. 
 
Defines export visibility macros for library 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). 
 
Object-oriented network library. 
 
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 
 
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. 
 
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.