Package titan.network

Class TitanProtocol.TitanPacket

java.lang.Object
titan.network.TitanProtocol.TitanPacket
Enclosing class:
TitanProtocol

public static class TitanProtocol.TitanPacket extends Object
Represents a parsed Titan Protocol packet, containing its operation code and payload.
  • Field Details

    • opCode

      public byte opCode
      The operation code of the received packet.
    • payload

      public String payload
      The string payload of the received packet.
  • Constructor Details

    • TitanPacket

      public TitanPacket(byte op, String pl)
      Constructs a new TitanPacket.
      Parameters:
      op - The operation code for the packet.
      pl - The payload string for the packet.