Search Results for

    Show / Hide Table of Contents

    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.

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

    Constructors

    | Edit this page View Source

    Bind(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 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 the socket to.

    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>

    Methods

    | Edit this page View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    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