vibe.d beta banner
get vibe.d
0.7.30

Function EventDriver.listenTCP

Listens on the specified port and interface for TCP connections.

'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.

Prototype

abstract TCPListener listenTCP(
  ushort port,
  void delegate(TCPConnection) conn_callback,
  string bind_address,
  TCPListenOptions options
);
block ddox.authorsblock ddox.copyrightblock ddox.license
Authors
Copyright
License