summaryrefslogtreecommitdiff
path: root/CSharp
diff options
context:
space:
mode:
authorfcolin2007-02-01 10:03:12 +0000
committerfcolin2007-02-01 10:03:12 +0000
commitb10f09ff4c6265700560fbcdf322bc17e683c155 (patch)
tree0488d0efab7c834ef399504de5e2a6d8b01c5e1d /CSharp
parent20960719beeccc0456baf7e830cd9382dba6ea61 (diff)
downloadivy-csharp-b10f09ff4c6265700560fbcdf322bc17e683c155.zip
ivy-csharp-b10f09ff4c6265700560fbcdf322bc17e683c155.tar.gz
ivy-csharp-b10f09ff4c6265700560fbcdf322bc17e683c155.tar.bz2
ivy-csharp-b10f09ff4c6265700560fbcdf322bc17e683c155.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/IvyPPC/IvyWatcher.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/CSharp/Ivy/IvyPPC/IvyWatcher.cs b/CSharp/Ivy/IvyPPC/IvyWatcher.cs
index 305e749..1815a04 100644
--- a/CSharp/Ivy/IvyPPC/IvyWatcher.cs
+++ b/CSharp/Ivy/IvyPPC/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)