From d4dd13a36fbf8362201556688d84ff6e313b0e55 Mon Sep 17 00:00:00 2001
From: Daniel Knorreck <daniel.knorreck@telecom-paristech.fr>
Date: Wed, 10 Jun 2009 12:58:07 +0000
Subject: [PATCH]

---
 simulators/c++2/src_simulator/Simulator.cpp | 4 ++--
 simulators/c++2/src_simulator/definitions.h | 3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/simulators/c++2/src_simulator/Simulator.cpp b/simulators/c++2/src_simulator/Simulator.cpp
index b225019265..9b40673e13 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 5a9e5f5abc..c3b4086065 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"
-- 
GitLab