25 #ifndef SFML_SOCKETSELECTOR_H
26 #define SFML_SOCKETSELECTOR_H
31 #include <SFML/Network/Export.h>
32 #include <SFML/Network/Types.h>
33 #include <SFML/System/Time.h>
42 CSFML_NETWORK_API sfSocketSelector* sfSocketSelector_create(
void);
52 CSFML_NETWORK_API sfSocketSelector* sfSocketSelector_copy(
const sfSocketSelector* selector);
60 CSFML_NETWORK_API
void sfSocketSelector_destroy(sfSocketSelector* selector);
73 CSFML_NETWORK_API
void sfSocketSelector_addTcpListener(sfSocketSelector* selector, sfTcpListener* socket);
74 CSFML_NETWORK_API
void sfSocketSelector_addTcpSocket(sfSocketSelector* selector, sfTcpSocket* socket);
75 CSFML_NETWORK_API
void sfSocketSelector_addUdpSocket(sfSocketSelector* selector, sfUdpSocket* socket);
87 CSFML_NETWORK_API
void sfSocketSelector_removeTcpListener(sfSocketSelector* selector, sfTcpListener* socket);
88 CSFML_NETWORK_API
void sfSocketSelector_removeTcpSocket(sfSocketSelector* selector, sfTcpSocket* socket);
89 CSFML_NETWORK_API
void sfSocketSelector_removeUdpSocket(sfSocketSelector* selector, sfUdpSocket* socket);
101 CSFML_NETWORK_API
void sfSocketSelector_clear(sfSocketSelector* selector);
118 CSFML_NETWORK_API sfBool sfSocketSelector_wait(sfSocketSelector* selector,
sfTime timeout);
136 CSFML_NETWORK_API sfBool sfSocketSelector_isTcpListenerReady(
const sfSocketSelector* selector, sfTcpListener* socket);
137 CSFML_NETWORK_API sfBool sfSocketSelector_isTcpSocketReady(
const sfSocketSelector* selector, sfTcpSocket* socket);
138 CSFML_NETWORK_API sfBool sfSocketSelector_isUdpSocketReady(
const sfSocketSelector* selector, sfUdpSocket* socket);
141 #endif // SFML_SOCKETSELECTOR_H