7 #ifndef NAZARA_TCPSERVER_HPP 8 #define NAZARA_TCPSERVER_HPP 10 #include <Nazara/Prerequesites.hpp> 11 #include <Nazara/Network/AbstractSocket.hpp> 12 #include <Nazara/Network/IpAddress.hpp> 28 inline UInt16 GetBoundPort()
const;
30 inline SocketState Listen(NetProtocol protocol, UInt16 port,
unsigned int queueSize = 10);
31 SocketState Listen(
const IpAddress& address,
unsigned int queueSize = 10);
34 void OnClose()
override;
35 void OnOpened()
override;
41 #include <Nazara/Network/TcpServer.inl> 43 #endif // NAZARA_TCPSERVER_HPP TODO: Inherit SoundEmitter from Node.
Definition: Algorithm.hpp:12
Network class that represents an IP address.
Definition: IpAddress.hpp:21
Network class that represents a client in a TCP connection.
Definition: TcpClient.hpp:21
Network class that represents a server in a TCP connection.
Definition: TcpServer.hpp:18
Network class that represents the base of socket.
Definition: AbstractSocket.hpp:18