Class ConnectPacket

    • Constructor Detail

      • ConnectPacket

        public ConnectPacket​(String host,
                             int port,
                             String name)
        Constructs a ConnectPacket
        Parameters:
        host - the client host
        port - the client port
        name - the client name
    • 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
      • getHost

        public String getHost()
      • getPort

        public int getPort()
      • getName

        public String getName()