Package sfs3.client.util
Class ClientDisconnectionReason
java.lang.Object
sfs3.client.util.ClientDisconnectionReason
The ClientDisconnectionReason class contains the constants
describing the possible reasons why a disconnection from the server occurred.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringClient was banned from the server.static final StringClient was disconnected because it was idle for too long.static final StringClient was kicked out of the server.static final StringThe client manually disconnected from the server.static final StringThe client reconnection system was not able to re-establish a connection to the server successfully.static final StringThe client did not send data for a while and got disconnected.static final StringA generic network error occurred, and the client is unable to determine the cause of the disconnection.static final StringThe client is loosing too many packets and the RDP config does not handle packet loss. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
IDLE
Client was disconnected because it was idle for too long. The connection timeout depends on the server settings.- See Also:
-
KICKED
Client was kicked out of the server. Kicking can occur automatically (i.e. for swearing, if the words filter is active) or due to the intervention of a user with enough privileges (i.e. an administrator or a moderator).- See Also:
-
BANNED
Client was banned from the server. Banning can occur automatically (i.e. for flooding, if the flood filter is active) or due to the intervention of a user with enough privileges (i.e. an administrator or a moderator).- See Also:
-
MANUAL
The client manually disconnected from the server. The disconnect method on the SmartFox class was called.- See Also:
-
RECONNECTION_FAILURE
The client reconnection system was not able to re-establish a connection to the server successfully.- See Also:
-
UNSTABLE_UDP_CONNECTION
The client is loosing too many packets and the RDP config does not handle packet loss.- See Also:
-
UDP_TIMEOUT
The client did not send data for a while and got disconnected. To keep the connection alive set the Zone's udpKeepAlive setting to 'true'- See Also:
-
UNKNOWN
A generic network error occurred, and the client is unable to determine the cause of the disconnection. The server-side log should be checked for possible error messages or warnings.- See Also:
-
-
Constructor Details
-
ClientDisconnectionReason
public ClientDisconnectionReason()
-
-
Method Details
-
getReason
- Internal
-