usage info
[opsoft.git] / gclib2 / include / Poll.h
blobe46fa51dfdf57cd7e5c17415b2cd7ce9f8b981cf
1 /*
2 * (c) Oleg Puchinin 2008
3 * graycardinalster@gmail.com
4 *
5 */
7 #ifndef DEFINE_POLL_H
8 #define DEFINE_POLL_H
10 class Poll
12 public:
13 Poll ();
14 ~Poll ();
16 Connection * add (Connection * c);
17 Connection * unlink (Connection * c);
18 pollfd * poll_build (int * nfds);
19 int poll (int timeout);
20 Connection * scan ();
21 int count ();
22 List * connections ();
24 private:
25 Connection * __findConnection (Connection * c);
26 Connection * __findName (char * str);
28 List * m_connections;
29 pollfd * pull;
32 #endif