ListenStatus — success, or a ListenError payload with the
reason and the captured OS error code.
ListenStatus listen(ref EventLoop loop, scope const(char)[] path) @trustedStart 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.
loop | Event loop to register with. |
path | Filesystem path to bind the socket to. |
ListenStatus — success, or a ListenError payload with the
reason and the captured OS error code.
ListenStatus listen(ref EventLoop loop, UnixAddress address) @trustedStart 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.
loop | Event loop to register with. |
address | Address to bind and listen on. |
ListenStatus — success, or a ListenError payload with the
reason and the captured OS error code.