Loading...
Searching...
No Matches
SocketSelector.hpp
Go to the documentation of this file.
7// In no event will the authors be held liable for any damages arising from the use of this software.
bool isReady(const Socket &socket, ReadinessType readinessType=Receive) const
Test a socket to know if it is ready to receive or send data.
bool wait(Time timeout=Time::Zero)
Wait until one or more sockets are ready to receive or send.
void dispatchReadyCallbacks()
Dispatch callbacks of ready sockets.
bool add(const Socket &socket, ReadinessType readinessType=Receive, std::function< void(ReadinessType readinessType)> readyCallback={})
Add a new socket to the selector.
SocketSelector & operator=(const SocketSelector &right)
Overload of assignment operator.
Definition AudioResource.hpp:36