Class RawPingPacket

All Implemented Interfaces:
PacketInterface

public class RawPingPacket extends RawPacket
  • Constructor Details

    • RawPingPacket

      public RawPingPacket()
  • 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
      Parameters:
      client - the client that sent the packet