0 on success, -1 on failure.int bindToAnyAddress(SOCKET sock, int family) @trusted nothrowBind socket to any available local address.
ConnectEx requires the socket to be bound before use.
sock | Socket to bind. |
family | Address family (AF_INET or AF_INET6). |
0 on success, -1 on failure.