TcrCode Constants Reference

Declared in TCRSdkConst.h

TcrCode

最多同时支持创建的透传通道个数

Definition

typedef NS_ENUM(NSInteger, TcrCode ) {
   Success = 0,
   ErrTimeout = 100010,
   ErrInvalidParams = 100011,
   ErrUnknown = 100012,
   ErrInternalError = 100013,
   ErrStateIllegal = 100014,
   ErrMultiPlayerBaseCode = 101000,
   MultiPlayerInvalidSeatIndex = ErrMultiPlayerBaseCode + 1,
   MultiPlayerNoAuthorized = ErrMultiPlayerBaseCode + 2,
   MultiPlayerNoSuchRole = ErrMultiPlayerBaseCode + 3,
   MultiPlayerNoSuchUser = ErrMultiPlayerBaseCode + 4,
   MultiPlayerAssignSeatFailed = ErrMultiPlayerBaseCode + 5,
   MultiPlayerIgnoredHostSubmit = ErrMultiPlayerBaseCode + 6,
   ErrDataChannelBaseCode = 102000,
   ErrCreateFailure = ErrDataChannelBaseCode + 1,
   ErrClosed = ErrDataChannelBaseCode + 2,
   SessionStopBaseCode = 104000,
   SessionStopServerUnknown = SessionStopBaseCode + 1,
   SessionStopServerDuplicateConnect = SessionStopBaseCode + 2,
   SessionStopServerStopGame = SessionStopBaseCode + 3,
   SessionStopServerExit = SessionStopBaseCode + 4,
   SessionStopStopManually = SessionStopBaseCode + 5,
   SessionStopReconnectFailed = SessionStopBaseCode + 6,
   SessionStopConnectFailed = SessionStopBaseCode + 7,
   SessionStopServerSessionInvalid = SessionStopBaseCode + 8,
   SessionStopConnectFailedServerRejected = SessionStopBaseCode + 9,
   SessionStopConnectFailedSdp = SessionStopBaseCode + 10,
};

Constants

Success

This indicates that the result is success. *

Declared In TCRSdkConst.h.

ErrTimeout

This indicates that the request is timed out. *

Declared In TCRSdkConst.h.

ErrInvalidParams

This indicates that the request parameter is invalid. *

Declared In TCRSdkConst.h.

ErrUnknown

This indicates that some unknown error has happened. *

Declared In TCRSdkConst.h.

ErrInternalError

This indicates that some internal error has happened. *

Declared In TCRSdkConst.h.

ErrStateIllegal

This indicates that the context state is illegal. *

Declared In TCRSdkConst.h.

ErrMultiPlayerBaseCode

The starting error code of the multi-player module. *

Declared In TCRSdkConst.h.

MultiPlayerInvalidSeatIndex

An invalid seat *

Declared In TCRSdkConst.h.

MultiPlayerNoAuthorized

The viewer couldn’t switch the seat. *

Declared In TCRSdkConst.h.

MultiPlayerNoSuchRole

The role dosen’t exist. *

Declared In TCRSdkConst.h.

MultiPlayerNoSuchUser

The user_id doesn’t exist. *

Declared In TCRSdkConst.h.

MultiPlayerAssignSeatFailed

Seat assignment failed. *

Declared In TCRSdkConst.h.

MultiPlayerIgnoredHostSubmit

The host didn’t need to change the seat. *

Declared In TCRSdkConst.h.

ErrDataChannelBaseCode

The starting error code of the data channel module. *

Declared In TCRSdkConst.h.

ErrCreateFailure

This indicates that the data channel is created failed. *

Declared In TCRSdkConst.h.

ErrClosed

This indicates that the data channel has been closed. *

Declared In TCRSdkConst.h.

SessionStopBaseCode

The code returned when the state of TcrSession changes to STATE_CLOSED*

Declared In TCRSdkConst.h.

SessionStopServerUnknown

This value indicates that an unknown error occurred in the cloud *

Declared In TCRSdkConst.h.

SessionStopServerDuplicateConnect

This value indicates that the server issues an exit command: Repeat userID connection. *

Declared In TCRSdkConst.h.

SessionStopServerStopGame

This value indicates that the server issues exit instructions: Cloud API call exit *

Declared In TCRSdkConst.h.

SessionStopServerExit

This value indicates that the server issues an exit command: the cloud actively exits *

Declared In TCRSdkConst.h.

SessionStopStopManually

This value indicates that the App call TcrSession.release() to actively exit *

Declared In TCRSdkConst.h.

SessionStopReconnectFailed

This value indicates that reconnection failure leads to exit *

Declared In TCRSdkConst.h.

SessionStopConnectFailed

This value indicate that failed to connect to cloud.
It is a general connection failure code kept for compatibility. The SDK now reports more specific failure codes instead: SessionStopConnectFailedServerRejected and SessionStopConnectFailedSdp. You are recommended to handle these specific codes, and treat this code as an unknown connection failure fallback.

Declared In TCRSdkConst.h.

SessionStopServerSessionInvalid

This value indicate that the ServerSession is invalid *

Declared In TCRSdkConst.h.

SessionStopConnectFailedServerRejected

This value indicates that the connection request to the cloud failed: the connect/play API request failed or the response could not be parsed. Refer to the SDK logs for details.

Declared In TCRSdkConst.h.

SessionStopConnectFailedSdp

This value indicates that the connection failed because the WebRTC SDP negotiation failed *

Declared In TCRSdkConst.h.

Declared In

TCRSdkConst.h