Socket.bind

void bind(Address addr) @trusted

Associate a local address with this socket.

Parameters

addrThe Address to associate this socket with.

Throws

SocketOSException when unable to bind the socket.