29 #ifndef RGJ_FREE_SOCKET_POLL_H_ 30 #define RGJ_FREE_SOCKET_POLL_H_ 32 #include <skstream/skstream.h> 47 typedef std::map<const basic_socket*,poll_type> socket_map;
49 int poll(
const socket_map& sockets,
unsigned long timeout = 0);
51 poll_type isReady(
const basic_socket* soc, poll_type mask = MASK);
52 poll_type isReady(
const socket_map::value_type& val)
53 {
return isReady(val.first, val.second);}
54 poll_type isReady(
const socket_map::iterator& I)
55 {
return isReady(I->first, I->second);}
56 poll_type isReady(
const socket_map::const_iterator& I)
57 {
return isReady(I->first, I->second);}
58 poll_type isReady(
const socket_map::reverse_iterator& I)
59 {
return isReady(I->first, I->second);}
60 poll_type isReady(
const socket_map::const_reverse_iterator& I)
61 {
return isReady(I->first, I->second);}
67 fd_set read_, write_, except_;
Base class for anything that encapsulates a socket.
Definition: sksocket.h:79
basic_socket_poll()
Definition: skpoll.cpp:36