| 100 | */ |
| 101 | template <typename SocketT> |
| 102 | class selectset { |
| 103 | private: |
| 104 | std::map<int, SocketT*> |
| 105 | fdsockmap; ///< A map containing the relations between the |
| 106 | ///< filedescriptors and the socket objects |
| 107 | |
| 108 | bool set_up; ///< Stores if the class has been initiated |
| 109 | |
| 110 | std::vector<poll::pollfd> pollfd_set; // Set of pollfd structs to poll |
| 111 | |
| 112 | public: |
| 113 | selectset(); |
| 114 | |
| 115 | void add_fd(const SocketT& sock, int method); |
| 116 | |
| 117 | std::pair<std::vector<SocketT*>, std::vector<SocketT*> > wait( |
| 118 | long long microsecs = 0); |
| 119 | typedef std::pair<std::vector<SocketT*>, std::vector<SocketT*> > |
| 120 | ready_socks; |
| 121 | }; |
| 122 | /** |
| 123 | * @} |
| 124 | */ |
nothing calls this directly
no outgoing calls
no test coverage detected