25 #ifndef SFML_TCPLISTENER_H 
   26 #define SFML_TCPLISTENER_H 
  128 #endif // SFML_TCPLISTENER_H 
CSFML_NETWORK_API unsigned short sfTcpListener_getLocalPort(const sfTcpListener *listener)
Get the port to which a TCP listener is bound locally. 
#define CSFML_NETWORK_API
CSFML_NETWORK_API void sfTcpListener_destroy(sfTcpListener *listener)
Destroy a TCP listener. 
CSFML_NETWORK_API void sfTcpListener_setBlocking(sfTcpListener *listener, sfBool blocking)
Set the blocking state of a TCP listener. 
CSFML_NETWORK_API sfSocketStatus sfTcpListener_accept(sfTcpListener *listener, sfTcpSocket **connected)
Accept a new connection. 
CSFML_NETWORK_API sfTcpListener * sfTcpListener_create(void)
Create a new TCP listener. 
struct sfTcpListener sfTcpListener
struct sfTcpSocket sfTcpSocket
CSFML_NETWORK_API sfBool sfTcpListener_isBlocking(const sfTcpListener *listener)
Tell whether a TCP listener is in blocking or non-blocking mode. 
CSFML_NETWORK_API sfSocketStatus sfTcpListener_listen(sfTcpListener *listener, unsigned short port)
Start listening for connections. 
sfSocketStatus
Define the status that can be returned by the socket functions.