Class MessageC2SLoginRequestKey

java.lang.Object
marauroa.common.net.message.Message
marauroa.common.net.message.MessageC2SLoginRequestKey
All Implemented Interfaces:
Serializable

public class MessageC2SLoginRequestKey extends Message
This message indicate the client want the server to send his public RSA key.
See Also:
Message
  • Constructor Details

    • MessageC2SLoginRequestKey

      public MessageC2SLoginRequestKey()
      Constructor for allowing creation of an empty message
    • MessageC2SLoginRequestKey

      public MessageC2SLoginRequestKey(Channel source, boolean skip)
      Constructor for allowing creation of an empty messag
      Parameters:
      source - The TCP/IP address associated to this message
      skip - game version check
    • MessageC2SLoginRequestKey

      public MessageC2SLoginRequestKey(Channel source, String game, String version)
      Constructor with a TCP/IP source/destination of the message and game name and version.
      Parameters:
      source - The TCP/IP address associated to this message
      game - the game name
      version - the version of the game.
  • Method Details

    • getGame

      public String getGame()
      Returns The name of the game
      Returns:
      the name of the game
    • getVersion

      public String 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

      public String toString()
      This method returns a String that represent the object
      Overrides:
      toString in class Message
      Returns:
      a string representing the object.
    • writeObject

      public void writeObject(OutputSerializer out) throws IOException
      Description copied from class: Message
      Serialize the object into an ObjectOutput
      Specified by:
      writeObject in interface Serializable
      Overrides:
      writeObject in class Message
      Parameters:
      out - the output serializer.
      Throws:
      IOException - if the serializations fails
    • readObject

      public void readObject(InputSerializer in) throws IOException
      Description copied from class: Message
      Serialize the object from an ObjectInput
      Specified by:
      readObject in interface Serializable
      Overrides:
      readObject in class Message
      Parameters:
      in - the input serializer
      Throws:
      IOException - if the serializations fails