Class RawConnectionPacket

java.lang.Object
dev.forbit.server.abstracts.Packet
dev.forbit.server.networks.raw.packets.RawConnectionPacket
All Implemented Interfaces:
PacketInterface, ConnectionPacket

public class RawConnectionPacket extends Packet implements ConnectionPacket
Sent to the client upon successful connection to the TCP Server
  • Constructor Details

    • RawConnectionPacket

      public RawConnectionPacket()
  • Method Details

    • fillBuffer

      public void fillBuffer(GMLOutputBuffer buffer)
      Description copied from class: Packet
      Fill the buffer with information you want to send to the client
      Specified by:
      fillBuffer in class Packet
      Parameters:
      buffer - the buffer with the header already included.
    • loadBuffer

      public void loadBuffer(GMLInputBuffer buffer)
      Description copied from class: Packet
      Load information from the input buffer into the class to use
      Specified by:
      loadBuffer in class Packet
      Parameters:
      buffer - the input (header is already read.)
    • receive

      public void receive(Client client)
      Description copied from interface: PacketInterface
      Method called when the packet is received by the server and information is loaded
      Specified by:
      receive in interface PacketInterface
      Parameters:
      client - the client that sent the packet