summaryrefslogtreecommitdiff
path: root/CSharp
diff options
context:
space:
mode:
authorfcolin2007-02-01 09:51:24 +0000
committerfcolin2007-02-01 09:51:24 +0000
commit4ab0c9405722779bad5f12148d088a9ecce5b34d (patch)
tree0df1750b49c9c5d24700a037a402f3a4c2a2bac5 /CSharp
parent14e593deeeaf9460455795e9524f6eb47d8c2a23 (diff)
downloadivy-csharp-4ab0c9405722779bad5f12148d088a9ecce5b34d.zip
ivy-csharp-4ab0c9405722779bad5f12148d088a9ecce5b34d.tar.gz
ivy-csharp-4ab0c9405722779bad5f12148d088a9ecce5b34d.tar.bz2
ivy-csharp-4ab0c9405722779bad5f12148d088a9ecce5b34d.tar.xz
Utilisateur : Fcolin Date : 30/07/03 Heure : 10:01 Archivé dans $/EScribe/Ivy Commentaire: diff bug on mono on Int32.Parse (vss 4)
Diffstat (limited to 'CSharp')
-rw-r--r--CSharp/Ivy/Ivy/IvyWatcher.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/CSharp/Ivy/Ivy/IvyWatcher.cs b/CSharp/Ivy/Ivy/IvyWatcher.cs
index 305e749..1815a04 100644
--- a/CSharp/Ivy/Ivy/IvyWatcher.cs
+++ b/CSharp/Ivy/Ivy/IvyWatcher.cs
@@ -97,12 +97,13 @@ namespace IvyBus
IPAddress remotehost = remoteEP.Address;
traceDebug("BUSWATCHER Receive Broadcast from " + Dns.GetHostName() + ":" + remoteEP.Port);
// TODO if ( !isInDomain( remotehost ) ) continue;
- String[] st = msg.Split(' ');
- if (st.Length != 2)
+ String[] st = msg.Split(new char[]{' ','\n'},3);
+ if (st.Length != 3)
{
Console.Error.WriteLine("Bad format " + msg);
continue;
}
+
int version = Int32.Parse(st[0]);
port = Int32.Parse(st[1]);
if (version != Ivy.PROCOCOLVERSION)