Class TcpFraming$
java.lang.Object
org.apache.pekko.remote.artery.tcp.TcpFraming$
INTERNAL API
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TcpFraming$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionINTERNAL APIencodeConnectionHeader(int streamId) When establishing the connection this header is sent first.encodeFrameHeader(int frameLength) Each frame starts with the frame header that contains the length of the frame.Magic()The first 4 bytes of a new connection must be these0x64 0x75 0x75 0x64(AKKA).int
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
TcpFraming$
public TcpFraming$()
-
-
Method Details
-
$lessinit$greater$default$1
INTERNAL API -
Undefined
public int Undefined() -
Magic
The first 4 bytes of a new connection must be these0x64 0x75 0x75 0x64(AKKA). The purpose of the "magic" is to detect and reject weird (accidental) accesses. -
encodeConnectionHeader
When establishing the connection this header is sent first. It contains a "magic" and the stream identifier for selecting control, ordinary, large inbound streams.The purpose of the "magic" is to detect and reject weird (accidental) accesses. The magic 4 bytes are
0x64 0x75 0x75 0x64(AKKA).The streamId
is encoded as 1 byte. -
encodeFrameHeader
Each frame starts with the frame header that contains the length of the frame. TheframeLengthis encoded as 4 bytes (little endian).
-