Package marauroa.common.net.message
Class MessageC2SLoginRequestKey
java.lang.Object
marauroa.common.net.message.Message
marauroa.common.net.message.MessageC2SLoginRequestKey
- All Implemented Interfaces:
Serializable
This message indicate the client want the server to send his public RSA key.
- See Also:
Message
-
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
ConstructorDescriptionConstructor for allowing creation of an empty messageMessageC2SLoginRequestKey(Channel source, boolean skip)
Constructor for allowing creation of an empty messagMessageC2SLoginRequestKey(Channel source, String game, String version)
Constructor with a TCP/IP source/destination of the message and game name and version. -
Method Summary
Modifier and TypeMethodDescriptiongetGame()
Returns The name of the gameReturns the version of the gamevoid
Serialize the object from an ObjectInputboolean
Should the game version check be skipped?toString()
This method returns a String that represent the objectvoid
writeObject(OutputSerializer out)
Serialize the object into an ObjectOutputMethods inherited from class marauroa.common.net.message.Message
getAddress, getChannel, getClientID, getMessageTimestamp, getProtocolVersion, getType, internalToString, isPerception, isSkippable, readFromMap, requiresPerception, setChannel, setClientID, setProtocolVersion, writeToJson
-
Constructor Details
-
MessageC2SLoginRequestKey
public MessageC2SLoginRequestKey()Constructor for allowing creation of an empty message -
MessageC2SLoginRequestKey
Constructor for allowing creation of an empty messag- Parameters:
source
- The TCP/IP address associated to this messageskip
- game version check
-
MessageC2SLoginRequestKey
Constructor with a TCP/IP source/destination of the message and game name and version.- Parameters:
source
- The TCP/IP address associated to this messagegame
- the game nameversion
- the version of the game.
-
-
Method Details
-
getGame
Returns The name of the game- Returns:
- the name of the game
-
getVersion
Returns the version of the game- Returns:
- the version of the game
-
skipGameVersionCheck
public boolean skipGameVersionCheck()Should the game version check be skipped?- Returns:
- true, if the game version check should be skipped
-
toString
This method returns a String that represent the object -
writeObject
Description copied from class:Message
Serialize the object into an ObjectOutput- Specified by:
writeObject
in interfaceSerializable
- Overrides:
writeObject
in classMessage
- Parameters:
out
- the output serializer.- Throws:
IOException
- if the serializations fails
-
readObject
Description copied from class:Message
Serialize the object from an ObjectInput- Specified by:
readObject
in interfaceSerializable
- Overrides:
readObject
in classMessage
- Parameters:
in
- the input serializer- Throws:
IOException
- if the serializations fails
-