Package com.jme3.network.message
Class ClientRegistrationMessage
java.lang.Object
com.jme3.network.AbstractMessage
com.jme3.network.message.ClientRegistrationMessage
- All Implemented Interfaces:
Message
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.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A message-specific serializer to avoid compatibility issues between versions. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getId()
int
void
setGameName
(String name) void
setId
(long id) void
setVersion
(int version) toString()
Methods inherited from class com.jme3.network.AbstractMessage
isReliable, setReliable
-
Field Details
-
SERIALIZER_ID
public static final short SERIALIZER_ID- See Also:
-
-
Constructor Details
-
ClientRegistrationMessage
public ClientRegistrationMessage()
-
-
Method Details