Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    Tcp.Message
    Tcp.Event
    Tcp.Received
    Implements
    INoSerializationVerificationNeeded
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    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 Source

    Received(ReadOnlySequence<byte>)

    Declaration
    public Received(ReadOnlySequence<byte> data)
    Parameters
    Type Name Description
    ReadOnlySequence<byte> data

    Properties

    | Edit this page View Source

    Data

    Declaration
    public ReadOnlySequence<byte> Data { get; }
    Property Value
    Type Description
    ReadOnlySequence<byte>

    Methods

    | Edit this page View Source

    ToString()

    Returns a string that represents the current object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string that represents the current object.

    Overrides
    object.ToString()

    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