Technical information

Datasubscriptionandremotecontrol
IfthecontentsofMsgControlis”2,1,3\0”itmeansthatthecurrentUDPmessageisthe
secondrequestmessagesentfromtheclienttotheserver,andthatthecurrentmessageis
messagenumber1ofarequestthatconsistsofatotalofthreeUDPmessages.
MsgRequest
ThecontentsoftheMsgRequestdependonthecurrentcommandtargetandwillbe
describedindetaillater.Forthemomentitisenoughtosaythattheformatoftherequest
isXMLbasedandthattherequestmustspecifyacommandtarget,amethodonthe
commandtargetandanyinputparametersrelevantforthecurrentmethod.Thegeneral
structureofarequestisshownbelow.
<request>
<clientInfo>
<cid>clientid</cid>
<rid>requestid</rid>
</clientInfo>
<type>invokeMethod</type>
<targetComponent>xx</targetComponent>
<method>
<yy>
<zz></zz>
</yy>
</method>
</request>
where:
clientid=clientidentication
requestid=requestidentication
xx=thenameofthecurrentcommandtarget
yy=thenameofthecurrentmethod
zz=anyparametersofthecurrentmethod
Response
TheserverapplicationwillrespondwithaResponsemessageasshownbelow.
structResponse
{
charHeader[4];//”RES\0”
charRequest[4];//”REQ/0”
charMsgControl[22];
//Sequenceno,Currentmsgno,Totalmsgno
charMsgResponse[1400];
//XMLbasedresponsetextcontainingresult
//ofcommandrequest
};
ThecontentsoftheResponsedependonthecurrentcommandtargetandwillbe
describedindetaillater.Forthemomentitisenoughtosaythattheformatofthe
responseisXMLbasedandthattheresponsecontainstheresult,anyerrormessages,
andanyoutputparametersrelevantforthecurrentmethod.Thegeneralstructureofa
responseisshownbelow.
164692/D
205