Socket.setBroadcast

void setBroadcast(bool broadcast) nothrow

Sets whether socket should allow sending to broadcast addresses. This is false by default.

Parameters

broadcastwhether socket should allow sending to broadcast addresses