SmartFoxServer 3 C++ Client API 3.1.0-beta
Client API for SmartFoxServer 3
Loading...
Searching...
No Matches
ClientDisconnectionReason.h File Reference

Doxygen only documents namespace-scope entities (enums, aliases, constants, free functions) in a header that carries this block. More...

#include <array>
#include <cstddef>
#include <string_view>

Namespaces

namespace  sfs3::net::ClientDisconnectionReason
 The reasons why a disconnection from the server can happen.

Variables

constexpr std::string_view sfs3::net::ClientDisconnectionReason::IDLE = "Idle"
 The client was idle for too long.
constexpr std::string_view sfs3::net::ClientDisconnectionReason::KICKED = "Kicked"
 The client was kicked out of the server.
constexpr std::string_view sfs3::net::ClientDisconnectionReason::BANNED = "Banned"
 The client was banned from the server.
constexpr std::string_view sfs3::net::ClientDisconnectionReason::MANUAL = "Manual"
 The client disconnected on its own, through a call to sfs3::SmartFox::disconnect.
constexpr std::string_view sfs3::net::ClientDisconnectionReason::RECONNECTION_FAILURE = "Reconnection failure"
 The reconnection system could not re-establish the connection to the server.
constexpr std::string_view sfs3::net::ClientDisconnectionReason::UNSTABLE_UDP_CONNECTION = "Unstable UDP Connection"
 The client is losing too many packets, and the RDP configuration in use does not recover from packet loss.
constexpr std::string_view sfs3::net::ClientDisconnectionReason::UDP_TIMEOUT = "UDP Connection timed out"
 The client sent no data for a while and the server closed the UDP connection.
constexpr std::string_view sfs3::net::ClientDisconnectionReason::UNKNOWN = "Unknown"
 A generic network error happened and the client cannot tell what caused the disconnection.

Detailed Description

Doxygen only documents namespace-scope entities (enums, aliases, constants, free functions) in a header that carries this block.