20 #ifndef CO_CONNECTION_SET_H 21 #define CO_CONNECTION_SET_H 23 #include <boost/noncopyable.hpp> 26 #include <lunchbox/thread.h> 68 CO_API
size_t getSize()
const;
74 CO_API
bool isEmpty()
const;
93 CO_API
Event select(
const uint32_t timeout = LB_TIMEOUT_INDEFINITE);
96 CO_API
void interrupt();
102 CO_API
int getError()
const;
115 detail::ConnectionSet*
const _impl;
121 Event _getSelectResult(
const uint32_t index);
122 Event _parseSelect(
const uint32_t index);
123 LB_TS_VAR(_selectThread);
127 CO_API std::ostream& operator<<(std::ostream&,
const ConnectionSet&);
133 #endif // CO_CONNECTION_SET_H Defines export visibility macros for library Collage.
Event
< Event types for select()
ConnectionSet::interrupt was called.
The selection request timed out.
A connection is not select'able.
Object-oriented network library.
An error occurred during select()
A connection signaled an error.
Handles events on a set of connections.
lunchbox::RefPtr< Connection > ConnectionPtr
A reference pointer for Connection pointers.
std::vector< ConnectionPtr > Connections
A vector of ConnectionPtr's.