Package marauroa.common.net.message
Class MessageC2SLoginSendPromise
java.lang.Object
marauroa.common.net.message.Message
marauroa.common.net.message.MessageSendByteArray
marauroa.common.net.message.MessageC2SLoginSendPromise
- All Implemented Interfaces:
Serializable
This message indicate the server that the client wants to login and send the
needed info: Hash of a random byte array (N1).
- 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.MessageSendByteArray
hashFields inherited from class marauroa.common.net.message.Message
channel, clientid, CLIENTID_INVALID, protocolVersion, timestampMessage, type -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for allowing creation of an empty messageMessageC2SLoginSendPromise(Channel source, byte[] hash, String language)Constructor with a TCP/IP source/destination of the message and promise -
Method Summary
Modifier and TypeMethodDescriptiongets the languagevoidSerialize the object from an ObjectInputtoString()voidwriteObject(OutputSerializer out)Serialize the object into an ObjectOutputMethods inherited from class marauroa.common.net.message.MessageSendByteArray
getHashMethods 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
-
MessageC2SLoginSendPromise
public MessageC2SLoginSendPromise()Constructor for allowing creation of an empty message -
MessageC2SLoginSendPromise
Constructor with a TCP/IP source/destination of the message and promise- Parameters:
source- The TCP/IP address associated to this messagehash- The hash code of the nonce to use.language- Client language
-
-
Method Details
-
getLanguage
gets the language- Returns:
- language
-
toString
-
readObject
Description copied from class:MessageSerialize the object from an ObjectInput- Specified by:
readObjectin interfaceSerializable- Overrides:
readObjectin classMessageSendByteArray- Parameters:
in- the input serializer- Throws:
IOException- if the serializations fails
-
writeObject
Description copied from class:MessageSerialize the object into an ObjectOutput- Specified by:
writeObjectin interfaceSerializable- Overrides:
writeObjectin classMessageSendByteArray- Parameters:
out- the output serializer.- Throws:
IOException- if the serializations fails
-