Class Udp.Received
When a listener actor receives a datagram from its socket it will send it to the handler designated in the Udp.Bind message using this message type.
Implements
Inherited Members
Namespace: Akka.IO
Assembly: Akka.dll
Syntax
public sealed class Udp.Received : Udp.Event, INoSerializationVerificationNeeded
Constructors
| Edit this page View SourceReceived(ReadOnlyMemory<byte>, EndPoint)
Creates a new Received event with the specified data and sender.
Declaration
public Received(ReadOnlyMemory<byte> data, EndPoint sender)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlyMemory<byte> | data | The UDP datagram payload. |
| EndPoint | sender | The remote endpoint that sent the datagram. |
Properties
| Edit this page View SourceData
The UDP datagram payload.
Declaration
public ReadOnlyMemory<byte> Data { get; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyMemory<byte> |
Sender
The remote endpoint that sent the datagram.
Declaration
public EndPoint Sender { get; }
Property Value
| Type | Description |
|---|---|
| EndPoint |
Methods
| Edit this page View SourceToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |
Edit this page