RCConnectionStatus Constants Reference
Declared in | RCStatusDefine.h |
---|
RCConnectionStatus
网络连接状态码
Definition
typedef NS_ENUM(NSInteger, RCConnectionStatus ) {
ConnectionStatus_UNKNOWN = -1,
ConnectionStatus_Connected = 0,
ConnectionStatus_NETWORK_UNAVAILABLE = 1,
ConnectionStatus_KICKED_OFFLINE_BY_OTHER_CLIENT = 6,
ConnectionStatus_Connecting = 10,
ConnectionStatus_Unconnected = 11,
ConnectionStatus_SignOut = 12,
ConnectionStatus_Suspend = 13,
ConnectionStatus_Timeout = 14,
ConnectionStatus_TOKEN_INCORRECT = 31004,
ConnectionStatus_DISCONN_EXCEPTION = 31011,
};
Constants
ConnectionStatus_UNKNOWN
-
未知状态
Declared In
RCStatusDefine.h
. ConnectionStatus_Connected
-
连接成功
Declared In
RCStatusDefine.h
. ConnectionStatus_NETWORK_UNAVAILABLE
-
连接过程中,当前设备网络不可用
Declared In
RCStatusDefine.h
. ConnectionStatus_KICKED_OFFLINE_BY_OTHER_CLIENT
-
当前用户在其他设备上登录,此设备被踢下线
Declared In
RCStatusDefine.h
. ConnectionStatus_Connecting
-
连接中
Declared In
RCStatusDefine.h
. ConnectionStatus_Unconnected
-
连接失败或未连接
Declared In
RCStatusDefine.h
. ConnectionStatus_SignOut
-
已注销
Declared In
RCStatusDefine.h
. ConnectionStatus_Suspend
-
连接暂时挂起(多是由于网络问题导致),SDK 会在合适时机进行自动重连
Declared In
RCStatusDefine.h
. ConnectionStatus_Timeout
-
自动连接超时,SDK 将不会继续连接,用户需要做超时处理,再自行调用 connectWithToken 接口进行连接
Declared In
RCStatusDefine.h
. ConnectionStatus_TOKEN_INCORRECT
-
Token无效
Declared In
RCStatusDefine.h
. ConnectionStatus_DISCONN_EXCEPTION
-
与服务器的连接已断开,用户被封禁
Declared In
RCStatusDefine.h
.
Declared In
RCStatusDefine.h