Class ConnectPacket

  • All Implemented Interfaces:
    Serializable, top.focess.util.serialize.FocessSerializable

    public class ConnectPacket
    extends Packet
    Used to connect to the server.
    See Also:
    Serialized Form
    • 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()