20 #ifndef CO_CONNECTION_SET_H 21 #define CO_CONNECTION_SET_H 25 #include <lunchbox/thread.h> 26 #include <boost/noncopyable.hpp> 30 namespace detail {
class ConnectionSet; }
65 CO_API
size_t getSize()
const;
71 CO_API
bool isEmpty()
const;
90 CO_API
Event select(
const uint32_t timeout = LB_TIMEOUT_INDEFINITE );
93 CO_API
void interrupt();
99 CO_API
int getError()
const;
112 detail::ConnectionSet*
const _impl;
118 Event _getSelectResult(
const uint32_t index );
119 Event _parseSelect(
const uint32_t index );
120 LB_TS_VAR( _selectThread );
124 CO_API std::ostream& operator << ( std::ostream&,
const ConnectionSet& );
130 #endif // CO_CONNECTION_SET_H Defines export visibility macros for library Collage.
std::vector< ConnectionPtr > Connections
A vector of ConnectionPtr's.
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.