Class ClientRegistrationMessage

java.lang.Object
com.jme3.network.AbstractMessage
com.jme3.network.message.ClientRegistrationMessage
All Implemented Interfaces:
Message

public class ClientRegistrationMessage extends AbstractMessage
Client registration is a message that contains a unique ID. This ID is simply the current time in milliseconds, providing multiple clients will not connect to the same server within one millisecond. This is used to couple the TCP and UDP connections together into one 'Client' on the server.
  • Field Details

  • Constructor Details

    • ClientRegistrationMessage

      public ClientRegistrationMessage()
  • Method Details

    • getId

      public long getId()
    • setId

      public void setId(long id)
    • setGameName

      public void setGameName(String name)
    • getGameName

      public String getGameName()
    • setVersion

      public void setVersion(int version)
    • getVersion

      public int getVersion()
    • toString

      public String toString()
      Overrides:
      toString in class Object