#include <Selector.hpp>
Public Member Functions | |
sfSelector () | |
Default constructor. | |
void | Add (SocketType Socket) |
Add a socket to watch. | |
void | Remove (SocketType Socket) |
Remove a socket. | |
void | Clear () |
Remove all sockets. | |
bool | GetSocketsReady (std::vector< SocketType > &Sockets, float Timeout=0.f) |
Remove a socket. |
It's a kind of multiplexer
Definition at line 41 of file Selector.hpp.
sfSelector< SocketType >::sfSelector | ( | ) | [inline] |
void sfSelector< SocketType >::Add | ( | SocketType | Socket | ) | [inline] |
Add a socket to watch.
Socket | : Socket to add |
Definition at line 41 of file Selector.inl.
void sfSelector< SocketType >::Remove | ( | SocketType | Socket | ) | [inline] |
void sfSelector< SocketType >::Clear | ( | ) | [inline] |
bool sfSelector< SocketType >::GetSocketsReady | ( | std::vector< SocketType > & | Sockets, | |
float | Timeout = 0.f | |||
) | [inline] |
Remove a socket.
Sockets | : Array to fill with sockets that are ready for reading | |
Timeout | : Timeout, in seconds (0 by default : no timeout) |
Definition at line 76 of file Selector.inl.