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>
Encapsulate an IPv4 network address.
Base class for all the socket types.
Status
Status codes that may be returned by socket functions.
Socket that listens to new TCP connections.
void close()
Stop listening and close the socket.
TcpListener()
Default constructor.
unsigned short getLocalPort() const
Get the port to which the socket is bound locally.
Status listen(unsigned short port, const IpAddress &address=IpAddress::Any)
Start listening for incoming connection attempts.
Status accept(TcpSocket &socket)
Accept a new connection.
Specialized socket using the TCP protocol.