25 #ifndef SFML_TCPLISTENER_HPP
26 #define SFML_TCPLISTENER_HPP
31 #include <SFML/Network/Export.hpp>
32 #include <SFML/Network/Socket.hpp>
33 #include <SFML/Network/IpAddress.hpp>
118 #endif // SFML_TCPLISTENER_HPP
void close()
Stop listening and close the socket.
Socket that listens to new TCP connections.
Encapsulate an IPv4 network address.
Status listen(unsigned short port, const IpAddress &address=IpAddress::Any)
Start listening for incoming connection attempts.
static const IpAddress Any
Value representing any address (0.0.0.0)
Status
Status codes that may be returned by socket functions.
Status accept(TcpSocket &socket)
Accept a new connection.
Specialized socket using the TCP protocol.
unsigned short getLocalPort() const
Get the port to which the socket is bound locally.
Base class for all the socket types.
TcpListener()
Default constructor.