Package marauroa.common.net.message
Class MessageS2CConnectNACK
java.lang.Object
marauroa.common.net.message.Message
marauroa.common.net.message.MessageS2CConnectNACK
- All Implemented Interfaces:
Serializable
This message indicate the client that the server has rejected its connection
It will indicate that this client IP has been banned from server because:
a) Bad behaviour
b) Flooding server.
c) Any other reason at server's admin discrection
- 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 messageMessageS2CConnectNACK(Channel source)
Constructor with a TCP/IP source/destination of the message -
Method Summary
Modifier and TypeMethodDescriptionvoid
Serialize 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
-
MessageS2CConnectNACK
public MessageS2CConnectNACK()Constructor for allowing creation of an empty message -
MessageS2CConnectNACK
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: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
-