SocketCb

Socket callback

The socket callback is responsible for opening a socket according to the supplied \p domain, \p type and \p protocol. The socket shall be created with \c CLOEXEC set in a racefree fashion, if possible.

It is typically not required to register an alternative socket implementation

The socket file descriptor or -1 on error (\c errno must be set)

alias SocketCb = int function
(
int domain
,
int type
,)
nothrow @nogc

Meta