RCConnectErrorCode Constants Reference

Declared in RCStatusDefine.h

RCConnectErrorCode

建立连接返回的错误码

@discussion 开发者仅需要关注以下几种连接错误码,其余错误码SDK均会进行自动重连,开发者无须处理。 RC_CONN_ID_REJECT, RC_CONN_TOKEN_INCORRECT, RC_CONN_NOT_AUTHRORIZED, RC_CONN_PACKAGE_NAME_INVALID, RC_CONN_APP_BLOCKED_OR_DELETED, RC_CONN_USER_BLOCKED, RC_DISCONN_KICK, RC_CLIENT_NOT_INIT, RC_INVALID_PARAMETER, RC_INVALID_ARGUMENT

Definition

typedef NS_ENUM(NSInteger, RCConnectErrorCode ) {
   RC_NET_CHANNEL_INVALID = 30001,
   RC_NET_UNAVAILABLE = 30002,
   RC_NAVI_REQUEST_FAIL = 30004,
   RC_NAVI_RESPONSE_ERROR = 30007,
   RC_NODE_NOT_FOUND = 30008,
   RC_SOCKET_NOT_CONNECTED = 30010,
   RC_SOCKET_DISCONNECTED = 30011,
   RC_PING_SEND_FAIL = 30012,
   RC_PONG_RECV_FAIL = 30013,
   RC_MSG_SEND_FAIL = 30014,
   RC_CONN_OVERFREQUENCY = 30015,
   RC_CONN_ACK_TIMEOUT = 31000,
   RC_CONN_PROTO_VERSION_ERROR = 31001,
   RC_CONN_ID_REJECT = 31002,
   RC_CONN_SERVER_UNAVAILABLE = 31003,
   RC_CONN_TOKEN_INCORRECT = 31004,
   RC_CONN_NOT_AUTHRORIZED = 31005,
   RC_CONN_REDIRECTED = 31006,
   RC_CONN_PACKAGE_NAME_INVALID = 31007,
   RC_CONN_APP_BLOCKED_OR_DELETED = 31008,
   RC_CONN_USER_BLOCKED = 31009,
   RC_DISCONN_KICK = 31010,
   RC_CONN_OTHER_DEVICE_LOGIN = 31023,
   RC_CONN_REFUSED = 32061,
   RC_CLIENT_NOT_INIT = 33001,
   RC_INVALID_PARAMETER = 33003,
   RC_CONNECTION_EXIST = 34001,
   RC_BACKGROUND_CONNECT = 34002,
   RC_INVALID_ARGUMENT = -1000,
};

Constants

RC_NET_CHANNEL_INVALID
 连接已被释放

Declared In RCStatusDefine.h.

RC_NET_UNAVAILABLE
 连接不可用

Declared In RCStatusDefine.h.

RC_NAVI_REQUEST_FAIL
 导航HTTP发送失败

Declared In RCStatusDefine.h.

RC_NAVI_RESPONSE_ERROR
 导航HTTP请求失败

Declared In RCStatusDefine.h.

RC_NODE_NOT_FOUND
 导航HTTP返回数据格式错误

Declared In RCStatusDefine.h.

RC_SOCKET_NOT_CONNECTED
 创建Socket连接失败

Declared In RCStatusDefine.h.

RC_SOCKET_DISCONNECTED
 Socket断开

Declared In RCStatusDefine.h.

RC_PING_SEND_FAIL
 PING失败

Declared In RCStatusDefine.h.

RC_PONG_RECV_FAIL
 PING超时

Declared In RCStatusDefine.h.

RC_MSG_SEND_FAIL
 信令发送失败

Declared In RCStatusDefine.h.

RC_CONN_OVERFREQUENCY
 连接过于频繁

Declared In RCStatusDefine.h.

RC_CONN_ACK_TIMEOUT
 连接ACK超时

Declared In RCStatusDefine.h.

RC_CONN_PROTO_VERSION_ERROR
 信令版本错误

Declared In RCStatusDefine.h.

RC_CONN_ID_REJECT
 AppKey错误

Declared In RCStatusDefine.h.

RC_CONN_SERVER_UNAVAILABLE
 服务器当前不可用(预留)

Declared In RCStatusDefine.h.

RC_CONN_TOKEN_INCORRECT
 Token无效

Declared In RCStatusDefine.h.

RC_CONN_NOT_AUTHRORIZED
 AppKey与Token不匹配

Declared In RCStatusDefine.h.

RC_CONN_REDIRECTED
 连接重定向

Declared In RCStatusDefine.h.

RC_CONN_PACKAGE_NAME_INVALID
 BundleID不正确

Declared In RCStatusDefine.h.

RC_CONN_APP_BLOCKED_OR_DELETED
 AppKey被封禁或已删除

Declared In RCStatusDefine.h.

RC_CONN_USER_BLOCKED
 用户被封禁

Declared In RCStatusDefine.h.

RC_DISCONN_KICK
 当前用户在其他设备上登录,此设备被踢下线

Declared In RCStatusDefine.h.

RC_CONN_OTHER_DEVICE_LOGIN
 重连过程中当前用户在其它设备上登录

Declared In RCStatusDefine.h.

RC_CONN_REFUSED
 连接被拒绝

Declared In RCStatusDefine.h.

RC_CLIENT_NOT_INIT
 SDK没有初始化

Declared In RCStatusDefine.h.

RC_INVALID_PARAMETER
 开发者接口调用时传入的参数错误

Declared In RCStatusDefine.h.

RC_CONNECTION_EXIST
 Connection已经存在

Declared In RCStatusDefine.h.

RC_BACKGROUND_CONNECT
 App 处于后台时调用连接

 @discussion
 请不要在 App 处于后台时调用连接。
 由于系统会清理后台程序,SDK 在进入后台两分钟之后会断开长连接,消息改走 push 通道。
 当 App 回到前台时,SDK 会自动发起重连机制。

Declared In RCStatusDefine.h.

RC_INVALID_ARGUMENT
 开发者接口调用时传入的参数错误

Declared In RCStatusDefine.h.

Declared In

RCStatusDefine.h