Function listenTcp
port
. 'connection_callback
' will be called for each client that connects to the
server socket. The 'stream' parameter then allows to perform pseudo-blocking
i/o on the client socket.
The 'ip4_addr' or 'ip6_addr' parameters can be used to specify the network interface on which the server socket is supposed to listen for connections. By default, all IPv4 and IPv6 interfaces will be used.
Prototypes
void listenTcp( ushort port, void delegate(TcpConnection stream) connection_callback ); void listenTcp( ushort port, void delegate(TcpConnection stream) connection_callback, string address );
Authors
Sönke Ludwig
Copyright
© 2012 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.