Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    UdpConnected.Message
    UdpConnected.Command
    UdpConnected.Connect
    Implements
    INoSerializationVerificationNeeded
    Inherited Members
    UdpConnected.Command.FailureMessage
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.IO
    Assembly: Akka.dll
    Syntax
    public sealed class UdpConnected.Connect : UdpConnected.Command, INoSerializationVerificationNeeded

    Constructors

    | Edit this page View Source

    Connect(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 Source

    Handler

    The actor that will handle incoming UDP messages.

    Declaration
    public IActorRef Handler { get; }
    Property Value
    Type Description
    IActorRef
    | Edit this page View Source

    LocalAddress

    The local address to bind to (may be null).

    Declaration
    public EndPoint LocalAddress { get; }
    Property Value
    Type Description
    EndPoint
    | Edit this page View Source

    Options

    Socket options to apply to the UDP socket.

    Declaration
    public IEnumerable<Inet.SocketOption> Options { get; }
    Property Value
    Type Description
    IEnumerable<Inet.SocketOption>
    | Edit this page View Source

    RemoteAddress

    The remote address to connect to.

    Declaration
    public EndPoint RemoteAddress { get; }
    Property Value
    Type Description
    EndPoint

    Implements

    INoSerializationVerificationNeeded

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET