Lines Matching refs:opCode

331     int32_t opCode = GetOpCodeFromContext(context);  in AddClientReqInfoToContext()  local
332 if (AddIntToJson(context, FIELD_OPERATION_CODE, opCode) != HC_SUCCESS) { in AddClientReqInfoToContext()
336 if (opCode == MEMBER_JOIN) { in AddClientReqInfoToContext()
523 int32_t opCode; in CheckBindParams() local
524 if (GetIntFromJson(context, FIELD_OPERATION_CODE, &opCode) != HC_SUCCESS) { in CheckBindParams()
528 if ((isClient && opCode == MEMBER_INVITE) || (!isClient && opCode == MEMBER_JOIN)) { in CheckBindParams()
635 static int32_t AddServerReqInfoToContext(int64_t requestId, const char *appId, int32_t opCode, in AddServerReqInfoToContext() argument
659 if (AddIntToJson(context, FIELD_OPERATION_CODE, opCode) != HC_SUCCESS) { in AddServerReqInfoToContext()
664 if (opCode == MEMBER_INVITE) { in AddServerReqInfoToContext()
713 static int32_t BuildServerBindContext(int64_t requestId, const char *appId, int32_t opCode, in BuildServerBindContext() argument
724 res = AddServerReqInfoToContext(requestId, appId, opCode, receivedMsg, context); in BuildServerBindContext()
756 int32_t opCode; in OpenServerBindSession() local
757 if (GetIntFromJson(receivedMsg, FIELD_GROUP_OP, &opCode) != HC_SUCCESS) { in OpenServerBindSession()
758 if (GetIntFromJson(receivedMsg, FIELD_OP_CODE, &opCode) != HC_SUCCESS) { in OpenServerBindSession()
759 opCode = MEMBER_JOIN; in OpenServerBindSession()
763 char *returnDataStr = ProcessRequestCallback(requestId, opCode, NULL, callback); in OpenServerBindSession()
774 int32_t res = BuildServerBindContext(requestId, appId, opCode, receivedMsg, context); in OpenServerBindSession()
966 static int32_t BuildServerAuthContext(int64_t requestId, int32_t opCode, const char *appId, CJson *… in BuildServerAuthContext() argument
1003 if (AddIntToJson(context, FIELD_OPERATION_CODE, opCode) != HC_SUCCESS) { in BuildServerAuthContext()
1010 static int32_t BuildServerP2PAuthContext(int64_t requestId, int32_t opCode, const char *appId, CJso… in BuildServerP2PAuthContext() argument
1049 if (AddIntToJson(context, FIELD_OPERATION_CODE, opCode) != HC_SUCCESS) { in BuildServerP2PAuthContext()
1058 int32_t opCode = AUTH_FORM_ACCOUNT_UNRELATED; in OpenServerAuthSession() local
1059 if (GetIntFromJson(receivedMsg, FIELD_AUTH_FORM, &opCode) != HC_SUCCESS) { in OpenServerAuthSession()
1060 if (GetIntFromJson(receivedMsg, FIELD_OP_CODE, &opCode) != HC_SUCCESS) { in OpenServerAuthSession()
1061 opCode = AUTH_FORM_INVALID_TYPE; in OpenServerAuthSession()
1065 char *returnDataStr = ProcessRequestCallback(requestId, opCode, NULL, callback); in OpenServerAuthSession()
1082 int32_t res = BuildServerAuthContext(requestId, opCode, appId, context); in OpenServerAuthSession()
1096 int32_t opCode = P2P_BIND; in OpenServerAuthSessionForP2P() local
1097 if (GetIntFromJson(receivedMsg, FIELD_OP_CODE, &opCode) != HC_SUCCESS) { in OpenServerAuthSessionForP2P()
1098 opCode = P2P_BIND; in OpenServerAuthSessionForP2P()
1101 char *returnDataStr = ProcessRequestCallback(requestId, opCode, NULL, callback); in OpenServerAuthSessionForP2P()
1130 int32_t res = BuildServerP2PAuthContext(requestId, opCode, appId, context); in OpenServerAuthSessionForP2P()