summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfcolin2007-02-01 10:01:56 +0000
committerfcolin2007-02-01 10:01:56 +0000
commitd1da3d235f8793acaa4261218753d55ad2ce2eb7 (patch)
treee414bf99b93e2f76a97b7e9d28a6bf4ab9ad59d5
parent2e89aedcc32c97042663136338d39d22ab977b4c (diff)
downloadivy-csharp-d1da3d235f8793acaa4261218753d55ad2ce2eb7.zip
ivy-csharp-d1da3d235f8793acaa4261218753d55ad2ce2eb7.tar.gz
ivy-csharp-d1da3d235f8793acaa4261218753d55ad2ce2eb7.tar.bz2
ivy-csharp-d1da3d235f8793acaa4261218753d55ad2ce2eb7.tar.xz
Utilisateur : Fcolin Date : 8/02/06 Heure : 12:15 Archivé dans $/CSharp/Ivy/Ivy Commentaire: Bug sur le ArgEnd sur le dernier argument (vss 8)
-rw-r--r--CSharp/Ivy/IvyPPC/IvyTCPStreamV3.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/CSharp/Ivy/IvyPPC/IvyTCPStreamV3.cs b/CSharp/Ivy/IvyPPC/IvyTCPStreamV3.cs
index 4b049fc..547bb48 100644
--- a/CSharp/Ivy/IvyPPC/IvyTCPStreamV3.cs
+++ b/CSharp/Ivy/IvyPPC/IvyTCPStreamV3.cs
@@ -115,6 +115,9 @@ namespace IvyBus
{
string delimiter = "" + ARG_END;
string data = string.Join(delimiter, args);
+ // a bad protocol implementation in C add a delimiter to the end of each arg
+ // we must add a delimiter to the end
+ data += delimiter;
sendMsg(MessageType.Msg, key, data);
}
@@ -194,6 +197,9 @@ namespace IvyBus
break;
case MessageType.Msg:
+ // a bad protocol implementation in C add a delimiter to the end of each arg
+ // we must remove a delimiter to the end
+ msgData = msgData.Remove(msgData.Length - 1);
receiver.TokenMsg(msgId, msgData.Split( ARG_END ));
break;