Packages

final case class Send(payload: ByteString, target: InetSocketAddress, ack: Event) extends Command with Product with Serializable

This message is understood by the “simple sender” which can be obtained by sending the SimpleSender query to the UdpExt#manager as well as by the listener actors which are created in response to Bind. It will send the given payload data as one UDP datagram to the given target address. The UDP actor will respond with 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 NoAck the UDP actor will reply with the given object as soon as the datagram has been successfully enqueued to the O/S kernel.

The sending UDP socket’s address belongs to the “simple sender” which does not handle inbound datagrams and sends from an ephemeral port; therefore sending using this mechanism is not suitable if replies are expected, use Bind in that case.

Source
Udp.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Send
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Command
  7. Message
  8. HasFailureMessage
  9. AnyRef
  10. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Send(payload: ByteString, target: InetSocketAddress, ack: Event)

Value Members

  1. val ack: Event
  2. def failureMessage: CommandFailed
    Definition Classes
    Command → HasFailureMessage
  3. val payload: ByteString
  4. val target: InetSocketAddress
  5. def wantsAck: Boolean