25 #ifndef CPP3DS_TCPLISTENER_HPP
26 #define CPP3DS_TCPLISTENER_HPP
31 #include <cpp3ds/Network/Socket.hpp>
113 #endif // CPP3DS_TCPLISTENER_HPP
unsigned short getLocalPort() const
Get the port to which the socket is bound locally.
Base class for all the socket types.
void close()
Stop listening and close the socket.
TcpListener()
Default constructor.
Status listen(unsigned short port)
Start listening for connections.
Specialized socket using the TCP protocol.
Status
Status codes that may be returned by socket functions.
Status accept(TcpSocket &socket)
Accept a new connection.
Socket that listens to new TCP connections.