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,
};
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 *
Declared In
TCRSdkConst.h
.
Declared In
TCRSdkConst.h