MCPcopy Create free account
hub / github.com/dermesser/libsocket / selectset

Class selectset

headers/select.hpp:102–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 */
101template <typename SocketT>
102class 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 */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected