25#ifndef SFML_SELECTORBASE_HPP
26#define SFML_SELECTORBASE_HPP
31#include <SFML/Config.hpp>
32#include <SFML/Network/SocketHelper.hpp>
59 void Add(SocketHelper::SocketType Socket);
67 void Remove(SocketHelper::SocketType Socket);
85 unsigned int Wait(
float Timeout = 0.f);
unsigned int Wait(float Timeout=0.f)
Wait and collect sockets which are ready for reading.
void Remove(SocketHelper::SocketType Socket)
Remove a socket.
SocketHelper::SocketType GetSocketReady(unsigned int Index)
After a call to Wait(), get the Index-th socket which is ready for reading.
void Add(SocketHelper::SocketType Socket)
Add a socket to watch.
SelectorBase()
Default constructor.
void Clear()
Remove all sockets.