25#ifndef SFML_SOCKETSELECTOR_HPP
26#define SFML_SOCKETSELECTOR_HPP
31#include <SFML/Network/Export.hpp>
32#include <SFML/System/Time.hpp>
156 struct SocketSelectorImpl;
161 SocketSelectorImpl* m_impl;
Multiplexer that allows to read from multiple sockets.
SocketSelector(const SocketSelector ©)
Copy constructor.
SocketSelector()
Default constructor.
void clear()
Remove all the sockets stored in the selector.
~SocketSelector()
Destructor.
bool isReady(Socket &socket) const
Test a socket to know if it is ready to receive data.
void remove(Socket &socket)
Remove a socket from the selector.
bool wait(Time timeout=Time::Zero)
Wait until one or more sockets are ready to receive.
void add(Socket &socket)
Add a new socket to the selector.
Base class for all the socket types.