Search Results for

    Show / Hide Table of Contents

    Class Tcp.Write

    Write data to the TCP connection. If no ack is needed use the special NoAck object. The connection actor will reply with a Tcp.CommandFailed message if the write could not be enqueued. If Write.WantsAck returns true, the connection actor will reply with the supplied Ack token once the write has been successfully enqueued to the O/S kernel. Note that this does not in any way guarantee that the data will be or have been sent! Unfortunately there is no way to determine whether a particular write has been sent by the O/S.

    Inheritance
    object
    Tcp.Message
    Tcp.Command
    Tcp.WriteCommand
    Tcp.SimpleWriteCommand
    Tcp.Write
    Implements
    INoSerializationVerificationNeeded
    Inherited Members
    Tcp.SimpleWriteCommand.WantsAck
    Tcp.SimpleWriteCommand.Append(Tcp.WriteCommand)
    Tcp.WriteCommand.Prepend(Tcp.SimpleWriteCommand)
    Tcp.WriteCommand.Prepend(IEnumerable<Tcp.WriteCommand>)
    Tcp.WriteCommand.Create(IEnumerable<Tcp.WriteCommand>)
    Tcp.WriteCommand.Create(params Tcp.WriteCommand[])
    Tcp.Command.FailureMessage
    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.Write : Tcp.SimpleWriteCommand, INoSerializationVerificationNeeded

    Fields

    | Edit this page View Source

    Empty

    Write with no data and Tcp.NoAck

    Declaration
    public static readonly Tcp.Write Empty
    Field Value
    Type Description
    Tcp.Write

    Properties

    | Edit this page View Source

    Ack

    The optional acknowledgment event which will be sent to the sender of this command.

    Declaration
    public override Tcp.Event Ack { get; }
    Property Value
    Type Description
    Tcp.Event
    Overrides
    Tcp.SimpleWriteCommand.Ack
    | Edit this page View Source

    Data

    The data we are going to write.

    Declaration
    public ByteString Data { get; }
    Property Value
    Type Description
    ByteString

    Methods

    | Edit this page View Source

    Create(ByteString)

    Creates a write from a ByteString

    Declaration
    public static Tcp.Write Create(ByteString data)
    Parameters
    Type Name Description
    ByteString data

    The data to return.

    Returns
    Type Description
    Tcp.Write
    | Edit this page View Source

    Create(ByteString, Event)

    Creates a write from a ByteString

    Declaration
    public static Tcp.Write Create(ByteString data, Tcp.Event ack)
    Parameters
    Type Name Description
    ByteString data

    The data to return.

    Tcp.Event ack

    The acknowledgement message we're receive once this write is complete.

    Returns
    Type Description
    Tcp.Write
    | Edit this page View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    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