Class Udp.SO.Broadcast
Inet.SocketOption to set the SO_BROADCAST option
For more information see cref="System.Net.Sockets.Socket.EnableBroadcast"/>
Inherited Members
Namespace: Akka.IO
Assembly: Akka.dll
Syntax
public sealed class Udp.SO.Broadcast : Inet.SocketOption
Constructors
| Edit this page View SourceBroadcast(bool)
Creates a new Broadcast socket option with the specified on/off state.
Declaration
public Broadcast(bool on)
Parameters
Type | Name | Description |
---|---|---|
bool | on | Whether to enable broadcasting. |
Properties
| Edit this page View SourceOn
Indicates whether broadcasting is enabled.
Declaration
public bool On { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Edit this page View SourceBeforeDatagramBind(Socket)
Applies the broadcast option to the socket before binding.
Declaration
public override void BeforeDatagramBind(Socket s)
Parameters
Type | Name | Description |
---|---|---|
Socket | s | The socket to apply the option to. |