Class Udp.Bind
Send this message to the Manager in order to bind to the given local port (or an automatically assigned one if the port number is zero). The listener actor for the newly bound port will reply with a Udp.Bound message, or the manager will reply with a Udp.CommandFailed message.
Implements
Inherited Members
Namespace: Akka.IO
Assembly: Akka.dll
Syntax
public sealed class Udp.Bind : Udp.Command, INoSerializationVerificationNeeded
Constructors
| Edit this page View SourceBind(IActorRef, EndPoint, IEnumerable<SocketOption>)
Creates a new Bind command to bind to a specified local address.
Declaration
public Bind(IActorRef handler, EndPoint localAddress, IEnumerable<Inet.SocketOption> options = null)
Parameters
Type | Name | Description |
---|---|---|
IActorRef | handler | The actor that will handle incoming UDP messages. |
EndPoint | localAddress | The local address to bind the socket to. |
IEnumerable<Inet.SocketOption> | options | Socket options to apply to the UDP socket (optional). |
Properties
| Edit this page View SourceHandler
The actor that will handle incoming UDP messages.
Declaration
public IActorRef Handler { get; }
Property Value
Type | Description |
---|---|
IActorRef |
LocalAddress
The local address to bind the socket to.
Declaration
public EndPoint LocalAddress { get; }
Property Value
Type | Description |
---|---|
EndPoint |
Options
Socket options to apply to the UDP socket.
Declaration
public IEnumerable<Inet.SocketOption> Options { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Inet.SocketOption> |
Methods
| Edit this page View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |