Class WaitPacket


  • public class WaitPacket
    extends ClientPacket
    Used to create receive-packet time for client and send-packet time for server.
    • Constructor Detail

      • WaitPacket

        public WaitPacket​(int clientId,
                          String token)
        Constructs a WaitPacket
        Parameters:
        clientId - the client id
        token - the client token
    • Method Detail

      • getId

        public int getId()
        Description copied from class: Packet
        Get the packet id
        Specified by:
        getId in class Packet
        Returns:
        the packet id