0 on success, or -1 with error set.int bind(ref EventLoop loop, scope const(char)[] host, ushort port) @trustedBind the socket to a local endpoint.
loop | Event loop to register with. |
host | Local address to bind to (e.g., "0.0.0.0" or "::"). |
port | Port number to bind to (0 for ephemeral). |
0 on success, or -1 with error set.