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.
Implements
Inherited Members
Namespace: Akka.IO
Assembly: Akka.dll
Syntax
public sealed class Send : UdpConnected.Command, INoSerializationVerificationNeeded
Constructors
| Improve this Doc View SourceSend(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 |
Properties
| Improve this Doc View SourceAck
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 |
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 |
WantsAck
Flag determining is a message sender is interested in receving send acknowledgement.
Declaration
public bool WantsAck { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
| Improve this Doc View SourceCreate(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 |