|
@@ -37,27 +37,6 @@ public:
|
|
Error = Error_MethodSignatureFailed;
|
|
Error = Error_MethodSignatureFailed;
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
- case IDCertService_Method_ReadWaitMore:
|
|
|
|
- if (dwSignature == IDCertService_MethodSignature_ReadWaitMore) {
|
|
|
|
- bOverlap = true;
|
|
|
|
- } else {
|
|
|
|
- Error = Error_MethodSignatureFailed;
|
|
|
|
- }
|
|
|
|
- break;
|
|
|
|
- case IDCertService_Method_Exit:
|
|
|
|
- if (dwSignature == IDCertService_MethodSignature_Exit) {
|
|
|
|
- bOverlap = true;
|
|
|
|
- } else {
|
|
|
|
- Error = Error_MethodSignatureFailed;
|
|
|
|
- }
|
|
|
|
- break;
|
|
|
|
- case IDCertService_Method_Eject:
|
|
|
|
- if (dwSignature == IDCertService_MethodSignature_Eject) {
|
|
|
|
- bOverlap = true;
|
|
|
|
- } else {
|
|
|
|
- Error = Error_MethodSignatureFailed;
|
|
|
|
- }
|
|
|
|
- break;
|
|
|
|
case IDCertService_Method_GetDevInfo:
|
|
case IDCertService_Method_GetDevInfo:
|
|
if (dwSignature == IDCertService_MethodSignature_GetDevInfo) {
|
|
if (dwSignature == IDCertService_MethodSignature_GetDevInfo) {
|
|
bOverlap = true;
|
|
bOverlap = true;
|
|
@@ -102,21 +81,6 @@ public:
|
|
Error = Error_MethodSignatureFailed;
|
|
Error = Error_MethodSignatureFailed;
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
- case IDCertService_Method_ReadWaitMore:
|
|
|
|
- if (dwSignature != IDCertService_MethodSignature_ReadWaitMore) {
|
|
|
|
- Error = Error_MethodSignatureFailed;
|
|
|
|
- }
|
|
|
|
- break;
|
|
|
|
- case IDCertService_Method_Exit:
|
|
|
|
- if (dwSignature != IDCertService_MethodSignature_Exit) {
|
|
|
|
- Error = Error_MethodSignatureFailed;
|
|
|
|
- }
|
|
|
|
- break;
|
|
|
|
- case IDCertService_Method_Eject:
|
|
|
|
- if (dwSignature != IDCertService_MethodSignature_Eject) {
|
|
|
|
- Error = Error_MethodSignatureFailed;
|
|
|
|
- }
|
|
|
|
- break;
|
|
|
|
case IDCertService_Method_GetDevInfo:
|
|
case IDCertService_Method_GetDevInfo:
|
|
if (dwSignature != IDCertService_MethodSignature_GetDevInfo) {
|
|
if (dwSignature != IDCertService_MethodSignature_GetDevInfo) {
|
|
Error = Error_MethodSignatureFailed;
|
|
Error = Error_MethodSignatureFailed;
|
|
@@ -149,21 +113,6 @@ public:
|
|
/// override by user
|
|
/// override by user
|
|
}
|
|
}
|
|
|
|
|
|
- virtual void Handle_ReadWaitMore(SpOnewayCallContext<IDCertService_ReadWaitMore_Info>::Pointer ctx)
|
|
|
|
- {
|
|
|
|
- /// override by user
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- virtual void Handle_Exit(SpOnewayCallContext<IDCertService_Exit_Info>::Pointer ctx)
|
|
|
|
- {
|
|
|
|
- /// override by user
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- virtual void Handle_Eject(SpReqAnsContext<IDCertService_Eject_Req, IDCertService_Eject_Ans>::Pointer ctx)
|
|
|
|
- {
|
|
|
|
- /// override by user
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
virtual void Handle_GetDevInfo(SpReqAnsContext<IDCertService_GetDevInfo_Req, IDCertService_GetDevInfo_Ans>::Pointer ctx)
|
|
virtual void Handle_GetDevInfo(SpReqAnsContext<IDCertService_GetDevInfo_Req, IDCertService_GetDevInfo_Ans>::Pointer ctx)
|
|
{
|
|
{
|
|
/// override by user
|
|
/// override by user
|
|
@@ -210,36 +159,6 @@ public:
|
|
Handle_CancelRead(ctx);
|
|
Handle_CancelRead(ctx);
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
- case IDCertService_Method_ReadWaitMore:
|
|
|
|
- {
|
|
|
|
- SpOnewayCallContext<IDCertService_ReadWaitMore_Info>::Pointer ctx;
|
|
|
|
- ctx.Attach(new SpOnewayCallContext<IDCertService_ReadWaitMore_Info>());
|
|
|
|
- SpBuffer2Object(Buf, ctx->Info);
|
|
|
|
- pTransactionContext->GetLinkContext(ctx->link);
|
|
|
|
- EntityResource::setLink(ctx->link);
|
|
|
|
- Handle_ReadWaitMore(ctx);
|
|
|
|
- }
|
|
|
|
- break;
|
|
|
|
- case IDCertService_Method_Exit:
|
|
|
|
- {
|
|
|
|
- SpOnewayCallContext<IDCertService_Exit_Info>::Pointer ctx;
|
|
|
|
- ctx.Attach(new SpOnewayCallContext<IDCertService_Exit_Info>());
|
|
|
|
- SpBuffer2Object(Buf, ctx->Info);
|
|
|
|
- pTransactionContext->GetLinkContext(ctx->link);
|
|
|
|
- EntityResource::setLink(ctx->link);
|
|
|
|
- Handle_Exit(ctx);
|
|
|
|
- }
|
|
|
|
- break;
|
|
|
|
- case IDCertService_Method_Eject:
|
|
|
|
- {
|
|
|
|
- SpReqAnsContext<IDCertService_Eject_Req,IDCertService_Eject_Ans>::Pointer ctx;
|
|
|
|
- ctx.Attach(new SpReqAnsContext<IDCertService_Eject_Req,IDCertService_Eject_Ans>(pTransactionContext));
|
|
|
|
- SpBuffer2Object(Buf, ctx->Req);
|
|
|
|
- pTransactionContext->GetLinkContext(ctx->link);
|
|
|
|
- EntityResource::setLink(ctx->link);
|
|
|
|
- Handle_Eject(ctx);
|
|
|
|
- }
|
|
|
|
- break;
|
|
|
|
case IDCertService_Method_GetDevInfo:
|
|
case IDCertService_Method_GetDevInfo:
|
|
{
|
|
{
|
|
SpReqAnsContext<IDCertService_GetDevInfo_Req,IDCertService_GetDevInfo_Ans>::Pointer ctx;
|
|
SpReqAnsContext<IDCertService_GetDevInfo_Req,IDCertService_GetDevInfo_Ans>::Pointer ctx;
|