Function EventLoop.createUnixConnection

Create UNIX connection: socket family AddressFamily.UNIX, socket type SocketType.STREAM. The UNIX socket family is used to communicate between processes on the same machine efficiently.

This method is a coroutine which will try to establish the connection in the background. When successful, the coroutine returns a Tuple!(Transport, "transport", Protocol, "protocol")

See the EventLoop.createConnection() method for parameters.

Prototype

auto std.typecons.__T5TupleTC12asynchronous10transports9TransportVAyaa9_7472616e73706f7274TC12asynchronous9protocols8ProtocolVAyaa8_70726f746f636f6cZ.Tuple createUnixConnection(
  Protocol delegate() protocolFactory,
  const(char[]) path = null,
  asynchronous.events.SslContext sslContext = null,
  std.socket.Socket socket = null,
  const(char[]) serverHostname = null
);

Authors

Dragos Carp

Copyright

© 2015-2016 Dragos Carp

License

Boost Software License - Version 1.0