Class ClientDisconnectionReason

java.lang.Object
sfs3.client.util.ClientDisconnectionReason

public class ClientDisconnectionReason extends Object
The ClientDisconnectionReason class contains the constants describing the possible reasons why a disconnection from the server occurred.
  • Field Details

    • IDLE

      public static final String IDLE
      Client was disconnected because it was idle for too long. The connection timeout depends on the server settings.
      See Also:
    • KICKED

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

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

      public static final String MANUAL
      The client manually disconnected from the server. The disconnect method on the SmartFox class was called.
      See Also:
    • RECONNECTION_FAILURE

      public static final String RECONNECTION_FAILURE
      The client reconnection system was not able to re-establish a connection to the server successfully.
      See Also:
    • UNSTABLE_UDP_CONNECTION

      public static final String UNSTABLE_UDP_CONNECTION
      The client is loosing too many packets and the RDP config does not handle packet loss.
      See Also:
    • UDP_TIMEOUT

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

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

      public static String getReason(int reasonId)
      Internal