diff --git a/simulators/c++2/src_simulator/Simulator.cpp b/simulators/c++2/src_simulator/Simulator.cpp index b2250192650e841eaa58acda16273ab19d2a2ff3..9b40673e138d72fa67422c6f3b1f49a4e228ee6b 100644 --- a/simulators/c++2/src_simulator/Simulator.cpp +++ b/simulators/c++2/src_simulator/Simulator.cpp @@ -414,14 +414,14 @@ void Simulator::decodeCommand(std::string& iCmd){ //std::cout << "Not crashed. III\n"; _simComp->setStopFlag(false); anEntityMsg.str(""); - aGlobMsg << TAG_HEADER << std::endl << TAG_STARTo << std::endl << TAG_GLOBALo << std::endl; + aGlobMsg << TAG_HEADER << std::endl << TAG_STARTo << std::endl << TAG_GLOBALo << std::endl << TAG_REPLYo << iCmd << TAG_REPLYc << std::endl; switch (aCmd){ case 0: //Quit simulation //std::cout << "QUIT SIMULATION EXECUTED " << std::endl; break; case 1:{ _busy=true; - anAckMsg << TAG_HEADER << std::endl << TAG_STARTo << std::endl << TAG_GLOBALo << std::endl << TAG_MSGo << "Command received" << TAG_MSGc << TAG_ERRNOo << 0 << TAG_ERRNOc << std::endl << TAG_STATUSo << SIM_BUSY << TAG_STATUSc << std::endl << TAG_GLOBALc << std::endl << TAG_STARTc << std::endl; + anAckMsg << TAG_HEADER << std::endl << TAG_STARTo << std::endl << TAG_GLOBALo << std::endl << TAG_REPLYo << iCmd << TAG_REPLYc << std::endl <<TAG_MSGo << "Command received" << TAG_MSGc << TAG_ERRNOo << 0 << TAG_ERRNOc << std::endl << TAG_STATUSo << SIM_BUSY << TAG_STATUSc << std::endl << TAG_GLOBALc << std::endl << TAG_STARTc << std::endl; _syncInfo->_server->sendReply(anAckMsg.str()); aInpStream >> aParam1; TMLTransaction* oLastTrans; diff --git a/simulators/c++2/src_simulator/definitions.h b/simulators/c++2/src_simulator/definitions.h index 5a9e5f5abc62794bd19df0c9ee0801232ed00534..c3b4086065bcf1c4e88691c6b2429a15e9e4b107 100644 --- a/simulators/c++2/src_simulator/definitions.h +++ b/simulators/c++2/src_simulator/definitions.h @@ -121,7 +121,8 @@ using std::max; #define TAG_HASHc "</hashval>" #define TAG_BRANCHo "<branch>" #define TAG_BRANCHc "</branch>" - +#define TAG_REPLYo "<replyto>" +#define TAG_REPLYc "</replyto>" #define TAG_EXTIMEo "<extime>" #define TAG_EXTIMEc "</extime>" #define TAG_CONTDELo "<contdel"