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 public class ConnectionHandshakeSegment extends io.netty.buffer.DefaultByteBufHolder
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 Details

  • 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

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class io.netty.buffer.DefaultByteBufHolder
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class io.netty.buffer.DefaultByteBufHolder
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class io.netty.buffer.DefaultByteBufHolder
    • ack

      public static ConnectionHandshakeSegment ack(long seq, long ack)
      Deprecated.
    • rst

      public static ConnectionHandshakeSegment rst(long seq)
      Deprecated.
    • syn

      public static ConnectionHandshakeSegment syn(long seq)
      Deprecated.
    • pshAck

      public static ConnectionHandshakeSegment pshAck(long seq, long ack, io.netty.buffer.ByteBuf data)
      Deprecated.
    • rstAck

      public static ConnectionHandshakeSegment rstAck(long seq, long ack)
      Deprecated.
    • synAck

      public static ConnectionHandshakeSegment synAck(long seq, long ack)
      Deprecated.
    • finAck

      public static ConnectionHandshakeSegment finAck(long seq, long ack)
      Deprecated.