Package org.drasyl.handler.connection
Class ConnectionHandshakeSegment
java.lang.Object
io.netty.buffer.DefaultByteBufHolder
org.drasyl.handler.connection.ConnectionHandshakeSegment
- All Implemented Interfaces:
io.netty.buffer.ByteBufHolder
,io.netty.util.ReferenceCounted
Deprecated.
A message used by
ConnectionHandshakeHandler
to perform a handshake.
The synchronization process has been heavily inspired by the three-way handshake of TCP (RFC 793).
-
Field Summary
Modifier and TypeFieldDescriptionstatic final long
Deprecated.static final long
Deprecated. -
Constructor Summary
ConstructorDescriptionConnectionHandshakeSegment
(long seq, long ack, byte ctl, io.netty.buffer.ByteBuf data) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionlong
ack()
Deprecated.static ConnectionHandshakeSegment
ack
(long seq, long ack) Deprecated.int
ctl()
Deprecated.boolean
Deprecated.static ConnectionHandshakeSegment
finAck
(long seq, long ack) Deprecated.int
hashCode()
Deprecated.boolean
isAck()
Deprecated.boolean
isFin()
Deprecated.boolean
Deprecated.boolean
isPsh()
Deprecated.boolean
isRst()
Deprecated.boolean
isSyn()
Deprecated.boolean
isUrg()
Deprecated.static ConnectionHandshakeSegment
pshAck
(long seq, long ack, io.netty.buffer.ByteBuf data) Deprecated.static ConnectionHandshakeSegment
rst
(long seq) Deprecated.static ConnectionHandshakeSegment
rstAck
(long seq, long ack) Deprecated.long
seq()
Deprecated.static ConnectionHandshakeSegment
syn
(long seq) Deprecated.static ConnectionHandshakeSegment
synAck
(long seq, long ack) Deprecated.toString()
Deprecated.Methods inherited from class io.netty.buffer.DefaultByteBufHolder
content, contentToString, copy, duplicate, refCnt, release, release, replace, retain, retain, retainedDuplicate, touch, touch
-
Field Details
-
MIN_SEQ_NO
public static final long MIN_SEQ_NODeprecated.- See Also:
-
MAX_SEQ_NO
public static final long MAX_SEQ_NODeprecated.- See Also:
-
-
Constructor Details
-
ConnectionHandshakeSegment
public ConnectionHandshakeSegment(long seq, long ack, byte ctl, io.netty.buffer.ByteBuf data) Deprecated.
-
-
Method Details
-
seq
public long seq()Deprecated. -
ack
public long ack()Deprecated. -
ctl
public int ctl()Deprecated. -
isUrg
public boolean isUrg()Deprecated. -
isAck
public boolean isAck()Deprecated. -
isOnlyAck
public boolean isOnlyAck()Deprecated. -
isPsh
public boolean isPsh()Deprecated. -
isRst
public boolean isRst()Deprecated. -
isSyn
public boolean isSyn()Deprecated. -
isFin
public boolean isFin()Deprecated. -
equals
Deprecated.- Overrides:
equals
in classio.netty.buffer.DefaultByteBufHolder
-
hashCode
public int hashCode()Deprecated.- Overrides:
hashCode
in classio.netty.buffer.DefaultByteBufHolder
-
toString
Deprecated.- Overrides:
toString
in classio.netty.buffer.DefaultByteBufHolder
-
ack
Deprecated. -
rst
Deprecated. -
syn
Deprecated. -
pshAck
Deprecated. -
rstAck
Deprecated. -
synAck
Deprecated. -
finAck
Deprecated.
-