|
@@ -79,6 +79,13 @@ public:
|
|
|
Error = Error_MethodSignatureFailed;
|
|
|
}
|
|
|
break;
|
|
|
+ case DeviceControlService_Method_TestConnectivity:
|
|
|
+ if (dwSignature == DeviceControlService_MethodSignature_TestConnectivity) {
|
|
|
+ bOverlap = true;
|
|
|
+ } else {
|
|
|
+ Error = Error_MethodSignatureFailed;
|
|
|
+ }
|
|
|
+ break;
|
|
|
case DeviceControlService_Method_GetDevInfo:
|
|
|
if (dwSignature == DeviceControlService_MethodSignature_GetDevInfo) {
|
|
|
bOverlap = true;
|
|
@@ -132,6 +139,11 @@ public:
|
|
|
Error = Error_MethodSignatureFailed;
|
|
|
}
|
|
|
break;
|
|
|
+ case DeviceControlService_Method_TestConnectivity:
|
|
|
+ if (dwSignature != DeviceControlService_MethodSignature_TestConnectivity) {
|
|
|
+ Error = Error_MethodSignatureFailed;
|
|
|
+ }
|
|
|
+ break;
|
|
|
case DeviceControlService_Method_GetDevInfo:
|
|
|
if (dwSignature != DeviceControlService_MethodSignature_GetDevInfo) {
|
|
|
Error = Error_MethodSignatureFailed;
|
|
@@ -179,6 +191,11 @@ public:
|
|
|
/// override by user
|
|
|
}
|
|
|
|
|
|
+ virtual void Handle_TestConnectivity(SpReqAnsContext<DeviceControlService_TestConnectivity_Req, DeviceControlService_TestConnectivity_Ans>::Pointer ctx)
|
|
|
+ {
|
|
|
+ /// override by user
|
|
|
+ }
|
|
|
+
|
|
|
virtual void Handle_GetDevInfo(SpReqAnsContext<DeviceControlService_GetDevInfo_Req, DeviceControlService_GetDevInfo_Ans>::Pointer ctx)
|
|
|
{
|
|
|
/// override by user
|
|
@@ -256,6 +273,14 @@ public:
|
|
|
Handle_ReadConfigValue(ctx);
|
|
|
}
|
|
|
break;
|
|
|
+ case DeviceControlService_Method_TestConnectivity:
|
|
|
+ {
|
|
|
+ SpReqAnsContext<DeviceControlService_TestConnectivity_Req,DeviceControlService_TestConnectivity_Ans>::Pointer ctx;
|
|
|
+ ctx.Attach(new SpReqAnsContext<DeviceControlService_TestConnectivity_Req,DeviceControlService_TestConnectivity_Ans>(pTransactionContext));
|
|
|
+ SpBuffer2Object(Buf, ctx->Req);
|
|
|
+ Handle_TestConnectivity(ctx);
|
|
|
+ }
|
|
|
+ break;
|
|
|
case DeviceControlService_Method_GetDevInfo:
|
|
|
{
|
|
|
SpReqAnsContext<DeviceControlService_GetDevInfo_Req,DeviceControlService_GetDevInfo_Ans>::Pointer ctx;
|