pub const BindOptions = struct ip6_only: ?bool = nullThe socket is restricted to sending and receiving IPv6 packets only. In this case, an IPv4 and an IPv6 application can bind to a single port at the same time.
The default is determined by system configuration.
allow_broadcast: bool = falseAllow the socket to send datagrams to broadcast addresses. When not enabled any attempt to send datagrams to a broadcast address will fail with error.AccessDenied
mode: Socket.Modeprotocol: ?Protocol = null284
285
286
287
288
289
290
291
292
293
294
295
296
297 pub const BindOptions = struct {
/// The socket is restricted to sending and receiving IPv6 packets only.
/// In this case, an IPv4 and an IPv6 application can bind to a single port
/// at the same time.
///
/// The default is determined by system configuration.
ip6_only: ?bool = null,
/// Allow the socket to send datagrams to broadcast addresses.
/// When not enabled any attempt to send datagrams to a broadcast address
/// will fail with `error.AccessDenied`
allow_broadcast: bool = false,
mode: Socket.Mode,
protocol: ?Protocol = null,
}