summaryrefslogtreecommitdiff
path: root/CSharp/Ivy/IvyPPC/IvyTCPStreamV3.cs
diff options
context:
space:
mode:
Diffstat (limited to 'CSharp/Ivy/IvyPPC/IvyTCPStreamV3.cs')
-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;