Search Results for

    Show / Hide Table of Contents

    Class Tcp.Register

    This message must be sent to a TCP connection actor after receiving the Tcp.Connected message. The connection will not read any data from the socket until this message is received, because this message defines the actor which will receive all inbound data.

    Inheritance
    object
    Tcp.Message
    Tcp.Command
    Tcp.Register
    Implements
    INoSerializationVerificationNeeded
    Inherited Members
    Tcp.Command.FailureMessage
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Akka.IO
    Assembly: Akka.dll
    Syntax
    public class Tcp.Register : Tcp.Command, INoSerializationVerificationNeeded

    Constructors

    | Edit this page View Source

    Register(IActorRef, bool, bool)

    Registers an actor to handle an outgoing or incoming TCP connection that has been established.

    Declaration
    public Register(IActorRef handler, bool keepOpenOnPeerClosed = false, bool useResumeWriting = true)
    Parameters
    Type Name Description
    IActorRef handler

    The actor who will be handling the TCP communication.

    bool keepOpenOnPeerClosed

    Keep the connection open if the peer is closed

    bool useResumeWriting

    Use resume / pause writing semantics once buffer gets full

    Properties

    | Edit this page View Source

    Handler

    Declaration
    public IActorRef Handler { get; }
    Property Value
    Type Description
    IActorRef
    | Edit this page View Source

    KeepOpenOnPeerClosed

    Declaration
    public bool KeepOpenOnPeerClosed { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    UseResumeWriting

    Declaration
    public bool UseResumeWriting { get; }
    Property Value
    Type Description
    bool

    Methods

    | 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