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.
Implements
Inherited Members
Namespace: Akka.IO
Assembly: Akka.dll
Syntax
public class Tcp.Register : Tcp.Command, INoSerializationVerificationNeeded
Constructors
| Edit this page View SourceRegister(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 SourceHandler
Declaration
public IActorRef Handler { get; }
Property Value
Type | Description |
---|---|
IActorRef |
KeepOpenOnPeerClosed
Declaration
public bool KeepOpenOnPeerClosed { get; }
Property Value
Type | Description |
---|---|
bool |
UseResumeWriting
Declaration
public bool UseResumeWriting { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Edit this page View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |