• Home
  • Raw
  • Download

Lines Matching refs:opCode

325     int32_t opCode = GetOpCodeFromContext(context);  in AddClientReqInfoToContext()  local
326 if (AddIntToJson(context, FIELD_OPERATION_CODE, opCode) != HC_SUCCESS) { in AddClientReqInfoToContext()
330 if (opCode == MEMBER_JOIN) { in AddClientReqInfoToContext()
506 int32_t opCode; in CheckBindParams() local
507 if (GetIntFromJson(context, FIELD_OPERATION_CODE, &opCode) != HC_SUCCESS) { in CheckBindParams()
511 if ((isClient && opCode == MEMBER_INVITE) || (!isClient && opCode == MEMBER_JOIN)) { in CheckBindParams()
632 static int32_t AddServerReqInfoToContext(int64_t requestId, const char *appId, int32_t opCode, in AddServerReqInfoToContext() argument
665 if (AddIntToJson(context, FIELD_OPERATION_CODE, opCode) != HC_SUCCESS) { in AddServerReqInfoToContext()
670 if (opCode == MEMBER_INVITE) { in AddServerReqInfoToContext()
684 static int32_t BuildServerBindContext(int64_t requestId, const char *appId, int32_t opCode, in BuildServerBindContext() argument
687 int32_t res = AddServerReqInfoToContext(requestId, appId, opCode, receivedMsg, context); in BuildServerBindContext()
734 int32_t opCode; in OpenServerBindSession() local
735 if (GetIntFromJson(receivedMsg, FIELD_GROUP_OP, &opCode) != HC_SUCCESS) { in OpenServerBindSession()
736 if (GetIntFromJson(receivedMsg, FIELD_OP_CODE, &opCode) != HC_SUCCESS) { in OpenServerBindSession()
737 opCode = MEMBER_JOIN; in OpenServerBindSession()
741 char *returnDataStr = ProcessRequestCallback(requestId, opCode, NULL, callback); in OpenServerBindSession()
757 res = BuildServerBindContext(requestId, appId, opCode, receivedMsg, context); in OpenServerBindSession()
948 static int32_t BuildServerAuthContext(int64_t requestId, int32_t opCode, const char *appId, CJson *… in BuildServerAuthContext() argument
990 if (AddIntToJson(context, FIELD_OPERATION_CODE, opCode) != HC_SUCCESS) { in BuildServerAuthContext()
997 static int32_t BuildServerP2PAuthContext(int64_t requestId, int32_t opCode, const char *appId, CJso… in BuildServerP2PAuthContext() argument
1042 if (AddIntToJson(context, FIELD_OPERATION_CODE, opCode) != HC_SUCCESS) { in BuildServerP2PAuthContext()
1051 int32_t opCode = AUTH_FORM_ACCOUNT_UNRELATED; in OpenServerAuthSession() local
1052 if (GetIntFromJson(receivedMsg, FIELD_AUTH_FORM, &opCode) != HC_SUCCESS) { in OpenServerAuthSession()
1053 if (GetIntFromJson(receivedMsg, FIELD_OP_CODE, &opCode) != HC_SUCCESS) { in OpenServerAuthSession()
1054 opCode = AUTH_FORM_INVALID_TYPE; in OpenServerAuthSession()
1058 char *returnDataStr = ProcessRequestCallback(requestId, opCode, NULL, callback); in OpenServerAuthSession()
1080 res = BuildServerAuthContext(requestId, opCode, appId, context); in OpenServerAuthSession()
1094 int32_t opCode = P2P_BIND; in OpenServerAuthSessionForP2P() local
1095 if (GetIntFromJson(receivedMsg, FIELD_OP_CODE, &opCode) != HC_SUCCESS) { in OpenServerAuthSessionForP2P()
1096 opCode = P2P_BIND; in OpenServerAuthSessionForP2P()
1099 char *returnDataStr = ProcessRequestCallback(requestId, opCode, NULL, callback); in OpenServerAuthSessionForP2P()
1133 res = BuildServerP2PAuthContext(requestId, opCode, appId, context); in OpenServerAuthSessionForP2P()