25 #ifndef SFML_TCPLISTENER_H
26 #define SFML_TCPLISTENER_H
31 #include <SFML/Network/Export.h>
32 #include <SFML/Network/SocketStatus.h>
33 #include <SFML/Network/IpAddress.h>
34 #include <SFML/Network/Types.h>
43 CSFML_NETWORK_API sfTcpListener* sfTcpListener_create(
void);
51 CSFML_NETWORK_API
void sfTcpListener_destroy(sfTcpListener* listener);
69 CSFML_NETWORK_API
void sfTcpListener_setBlocking(sfTcpListener* listener, sfBool blocking);
79 CSFML_NETWORK_API sfBool sfTcpListener_isBlocking(
const sfTcpListener* listener);
92 CSFML_NETWORK_API
unsigned short sfTcpListener_getLocalPort(
const sfTcpListener* listener);
111 CSFML_NETWORK_API sfSocketStatus sfTcpListener_listen(sfTcpListener* listener,
unsigned short port,
sfIpAddress address);
129 CSFML_NETWORK_API sfSocketStatus sfTcpListener_accept(sfTcpListener* listener, sfTcpSocket** connected);
132 #endif // SFML_TCPLISTENER_H