Class UdpConnected.Connect
Send this message to the Manager in order to bind to a local
port (optionally with the chosen localAddress) and create a UDP socket
which is restricted to sending to and receiving from the given remoteAddress.
All received datagrams will be sent to the designated handler actor.
Implements
Inherited Members
Namespace: Akka.IO
Assembly: Akka.dll
Syntax
public sealed class UdpConnected.Connect : UdpConnected.Command, INoSerializationVerificationNeeded
Constructors
| Edit this page View SourceConnect(IActorRef, EndPoint, EndPoint, IEnumerable<SocketOption>)
Creates a new Connect command with the specified parameters.
Declaration
public Connect(IActorRef handler, EndPoint remoteAddress, EndPoint localAddress = null, IEnumerable<Inet.SocketOption> options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IActorRef | handler | The actor that will handle incoming UDP messages. |
| EndPoint | remoteAddress | The remote address to connect to. |
| EndPoint | localAddress | The local address to bind to (optional). |
| 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 to (may be null).
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> |
RemoteAddress
The remote address to connect to.
Declaration
public EndPoint RemoteAddress { get; }
Property Value
| Type | Description |
|---|---|
| EndPoint |
Edit this page