Class Tcp.Received
Whenever data are read from a socket they will be transferred within this class to the handler actor which was designated in the Tcp.Register message.
Implements
Inherited Members
Namespace: Akka.IO
Assembly: Akka.dll
Syntax
public sealed class Tcp.Received : Tcp.Event, INoSerializationVerificationNeeded
Remarks
Data is a ReadOnlySequence<T> to allow potentially non-contiguous buffers from the underlying transport. Today the actor copies the pipe's pooled segments into a single contiguous array before delivery, so the sequence is single-segment in practice; downstream framing stages should still treat it as multi-segment to remain compatible with future zero-copy optimizations.
Constructors
| Edit this page View SourceReceived(ReadOnlySequence<byte>)
Declaration
public Received(ReadOnlySequence<byte> data)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySequence<byte> | data |
Properties
| Edit this page View SourceData
Declaration
public ReadOnlySequence<byte> Data { get; }
Property Value
| Type | Description |
|---|---|
| ReadOnlySequence<byte> |
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