UnixConnection.connect

ConnectStatus connect(ref EventLoop loop, scope const(char)[] path, CancelToken cancel = CancelToken.invalid) @trusted

Start a non-blocking connection attempt to a Unix domain socket path.

Parameters

loopEvent loop to register with.
pathFilesystem path of the Unix domain socket to connect to.
cancelOptional cancellation token.

Returns

ConnectStatus — success, or a ConnectError payload with the

reason and the captured OS error code.

ConnectStatus connect(ref EventLoop loop, UnixAddress address, CancelToken cancel = CancelToken.invalid) @trusted

Start a non-blocking connection attempt to a Unix domain socket address.

Linux abstract-namespace addresses are supported through UnixAddress.abstractName; on other platforms an abstract request fails with ConnectErrorReason.UNSUPPORTED.

Parameters

loopEvent loop to register with.
addressAddress to connect to.
cancelOptional cancellation token.

Returns

ConnectStatus — success, or a ConnectError payload with the

reason and the captured OS error code.