vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

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.

Authors

Sönke Ludwig

Copyright

© 2012-2016 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.