diff options
author | fcolin | 2007-02-01 09:50:07 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 09:50:07 +0000 |
commit | 1dd2bdd0dca89b2cdedd9c161d5d4ce9205f9c1d (patch) | |
tree | 6fdb88c3efa3befb0514f613be2787beffe1bd4f /CSharp | |
parent | 2e91b7778fa4c8a365dcf11d42f0a54fd928af03 (diff) | |
download | ivy-csharp-1dd2bdd0dca89b2cdedd9c161d5d4ce9205f9c1d.zip ivy-csharp-1dd2bdd0dca89b2cdedd9c161d5d4ce9205f9c1d.tar.gz ivy-csharp-1dd2bdd0dca89b2cdedd9c161d5d4ce9205f9c1d.tar.bz2 ivy-csharp-1dd2bdd0dca89b2cdedd9c161d5d4ce9205f9c1d.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)
Diffstat (limited to 'CSharp')
-rw-r--r-- | CSharp/Ivy/Ivy/IvyTCPStreamV3.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CSharp/Ivy/Ivy/IvyTCPStreamV3.cs b/CSharp/Ivy/Ivy/IvyTCPStreamV3.cs index 4b049fc..547bb48 100644 --- a/CSharp/Ivy/Ivy/IvyTCPStreamV3.cs +++ b/CSharp/Ivy/Ivy/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;
|