25 #ifndef CPP3DS_SOCKETSELECTOR_HPP
26 #define CPP3DS_SOCKETSELECTOR_HPP
31 #include <cpp3ds/System/Time.hpp>
92 void remove(
Socket& socket);
155 struct SocketSelectorImpl;
160 SocketSelectorImpl* m_impl;
166 #endif // CPP3DS_SOCKETSELECTOR_HPP
void add(Socket &socket)
Add a new socket to the selector.
bool wait(Time timeout=Time::Zero)
Wait until one or more sockets are ready to receive.
Base class for all the socket types.
void clear()
Remove all the sockets stored in the selector.
~SocketSelector()
Destructor.
SocketSelector & operator=(const SocketSelector &right)
Overload of assignment operator.
bool isReady(Socket &socket) const
Test a socket to know if it is ready to receive data.
SocketSelector()
Default constructor.
Multiplexer that allows to read from multiple sockets.
static const Time Zero
Predefined "zero" time value.