Function listenTCP_s
Starts listening on the specified port.
TCPListener[] listenTCP_s
(
ushort port,
nothrow @safe void function(TCPConnection) connection_callback,
TCPListenOptions options = TCPListenOptions .reuseAddress
) @trusted;
TCPListener listenTCP_s
(
ushort port,
nothrow @safe void function(TCPConnection) connection_callback,
string address,
TCPListenOptions options = TCPListenOptions .reuseAddress
) @trusted;
This function is the same as listenTCP but takes a function callback instead of a delegate.