UnixListener.listen

ListenStatus listen(ref EventLoop loop, scope const(char)[] path) @trusted

Start listening on the requested Unix domain socket path.

This will create the socket file at the specified path. If a socket file already exists at the path, it will be unlinked first.

Parameters

loopEvent loop to register with.
pathFilesystem path to bind the socket to.

Returns

ListenStatus — success, or a ListenError payload with the

reason and the captured OS error code.

ListenStatus listen(ref EventLoop loop, UnixAddress address) @trusted

Start listening on the requested Unix domain socket address.

Filesystem addresses create (and unlink a stale) socket file as with listen(loop, path). Linux abstract-namespace addresses create no filesystem entry and need no unlink; on other platforms an abstract request fails with ListenErrorReason.UNSUPPORTED. UnixListener.localPath is empty for abstract listeners.

Parameters

loopEvent loop to register with.
addressAddress to bind and listen on.

Returns

ListenStatus — success, or a ListenError payload with the

reason and the captured OS error code.