#include <Selector.hpp>
Public Member Functions | |
sfSelector () | |
void | Add (SocketType Socket) |
void | Remove (SocketType Socket) |
void | Clear () |
bool | GetSocketsReady (std::vector< SocketType > &Sockets, unsigned int Timeout=0) |
Definition at line 41 of file Selector.hpp.
sfSelector< SocketType >::sfSelector | ( | ) | [inline] |
Default constructor
Definition at line 30 of file Selector.inl.
References sfSelector< SocketType >::Clear().
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] |
Remove a socket
Socket | : Socket to remove |
Definition at line 54 of file Selector.inl.
Referenced by sfServer::Disconnect().
void sfSelector< SocketType >::Clear | ( | ) | [inline] |
Remove all sockets
Definition at line 64 of file Selector.inl.
Referenced by sfSelector< SocketType >::sfSelector().
bool sfSelector< SocketType >::GetSocketsReady | ( | std::vector< SocketType > & | Sockets, | |
unsigned int | Timeout = 0 | |||
) | [inline] |
Remove a socket
Sockets | : Array to fill with sockets that are ready for reading | |
Timeout | : Timeout, in milliseconds (0 by default : no timeout) |
Definition at line 76 of file Selector.inl.