+
+};
+
+class NetChannelPoller
+{
+ typedef std::vector<NetChannel*> ChannelList;
+ ChannelList channels;
+public:
+ void addChannel(NetChannel* channel);
+ void removeChannel(NetChannel* channel);
+
+ bool hasChannels() const { return !channels.empty(); }
+
+ bool poll(unsigned int timeout = 0);
+ void loop(unsigned int timeout = 0);