Search Results for

    Show / Hide Table of Contents

    Class UdpConnected.Send

    This message is understood by the connection actors to send data to their designated destination. The connection actor will respond with UdpConnected.CommandFailed if the send could not be enqueued to the O/S kernel because the send buffer was full. If the given ack is not of type UdpConnected.NoAck the connection actor will reply with the given object as soon as the datagram has been successfully enqueued to the O/S kernel.

    Inheritance
    object
    UdpConnected.Message
    UdpConnected.Command
    UdpConnected.Send
    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.Send : UdpConnected.Command, INoSerializationVerificationNeeded

    Constructors

    | Edit this page View Source

    Send(ByteString, object)

    Creates a new send request to be executed via UDP socket to a addressed to an endpoint known by the connected UDP actor. Once send completes, this request will acknowledged back on the sender side with an ack object.

    Declaration
    public Send(ByteString payload, object ack)
    Parameters
    Type Name Description
    ByteString payload

    Binary payload to be send.

    object ack

    Acknowledgement send back to the sender, once payload has been send through a socket.

    Properties

    | Edit this page View Source

    Ack

    Acknowledgement send back to the sender, once Payload has been send through a socket. If it's UdpConnected.NoAck, then no acknowledgement will be send.

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

    Payload

    A binary payload to be send to an endpoint known by connected UDP actor. It must fit into a single UDP datagram.

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

    WantsAck

    Flag determining is a message sender is interested in receving send acknowledgement.

    Declaration
    public bool WantsAck { get; }
    Property Value
    Type Description
    bool

    Methods

    | Edit this page View Source

    Create(ByteString)

    Creates a new send request to be executed via UDP socket to a addressed to an endpoint known by the connected UDP actor. Once send completes, this request will not be acknowledged on by the sender side. object.

    Declaration
    public static UdpConnected.Send Create(ByteString payload)
    Parameters
    Type Name Description
    ByteString payload

    Binary payload to be send.

    Returns
    Type Description
    UdpConnected.Send

    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