Package marauroa.common.net.message
Class MessageC2SOutOfSync
java.lang.Object
marauroa.common.net.message.Message
marauroa.common.net.message.MessageC2SOutOfSync
- All Implemented Interfaces:
Serializable
If client gets out of sync with server because of a problem in communications, it can
request server to send a sync data frame to recover synchronization with server.
-
Nested Class Summary
Nested classes/interfaces inherited from class marauroa.common.net.message.Message
Message.MessageType -
Field Summary
Fields inherited from class marauroa.common.net.message.Message
channel, clientid, CLIENTID_INVALID, protocolVersion, timestampMessage, type -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for allowing creation of an empty messageMessageC2SOutOfSync(Channel source)Constructor with a TCP/IP source/destination of the message -
Method Summary
Modifier and TypeMethodDescriptionvoidSerialize the object from an ObjectInputtoString()This method returns a String that represent the objectMethods inherited from class marauroa.common.net.message.Message
getAddress, getChannel, getClientID, getMessageTimestamp, getProtocolVersion, getType, internalToString, isPerception, isSkippable, readFromMap, requiresPerception, setChannel, setClientID, setProtocolVersion, writeObject, writeToJson
-
Constructor Details
-
MessageC2SOutOfSync
public MessageC2SOutOfSync()Constructor for allowing creation of an empty message -
MessageC2SOutOfSync
Constructor with a TCP/IP source/destination of the message- Parameters:
source- The TCP/IP address associated to this message
-
-
Method Details
-
toString
This method returns a String that represent the object -
readObject
Description copied from class:MessageSerialize the object from an ObjectInput- Specified by:
readObjectin interfaceSerializable- Overrides:
readObjectin classMessage- Parameters:
in- the input serializer- Throws:
IOException- if the serializations fails
-