Uses of Class
client.Packet

Packages that use Packet
Package
Description
 
 
  • Uses of Packet in client

    Methods in client that return Packet
    Modifier and Type
    Method
    Description
    Returns the latest packet from the server that is not null.
    static Packet
    SingleClient.getLatestPacket()
    Returns the latest packet from the server.
    Client.getPacket()
    Gets a packet from the server.
    static Packet
    SingleClient.getPacket()
    Gets a packet from the server.
    Methods in client with parameters of type Packet
    Modifier and Type
    Method
    Description
    void
    Client.sendJoinPacket(Packet packet)
    Sends a packet to the server through the buffered writer.Also sends the username so the client can be initialised on the server.
    void
    Client.sendPacket(Packet packet)
    Sends a packet to the server.Similarly to the sendMessage the packet is converted to a JadeObject then serialized to a string.
    static void
    SingleClient.sendPacket(Packet packet)
    Sends a packet via the clients sendPacket() method.
    void
    Client.setLatestPacket(Packet packet)
    Sets the latest packet of the client.
    static void
    SingleClient.setLatestPacket(Packet packet)
    Sets the value of the latest packet from the server.
  • Uses of Packet in jade

    Methods in jade that return Packet
    Modifier and Type
    Method
    Description
    JadeObject.toPacket()
    This method converts the current jade object to a new object of type Packet.