vibe.d beta banner
get vibe.d

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

Function EventDriver.listenTCP

Listens on the specified port and interface for TCP connections.

abstract TCPListener listenTCP (
  ushort port,
  @safe void delegate(TCPConnection) conn_callback,
  string bind_address,
  TCPListenOptions options
) @safe;

'bind_address' must be an IPv4 or IPv6 address string corresponding to a local network interface. conn_callback is called for every incoming connection, each time from a new task.


Sönke Ludwig


© 2012-2015 RejectedSoftware e.K.


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