From 6b9b492882f630c801d92fd43f81e27bd82602df Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 10:03:54 +0000 Subject: Utilisateur : Fcolin Date : 2/06/06 Heure : 16:47 Archivé dans $/CSharp/Ivy/Ivy Commentaire: Mise en conformite du code avec les guidelines , et changement prototype evenements (vss 25) --- CSharp/Ivy/IvyPPC/IvyWatcher.cs | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/CSharp/Ivy/IvyPPC/IvyWatcher.cs b/CSharp/Ivy/IvyPPC/IvyWatcher.cs index 0c56d07..df7788d 100644 --- a/CSharp/Ivy/IvyPPC/IvyWatcher.cs +++ b/CSharp/Ivy/IvyPPC/IvyWatcher.cs @@ -170,35 +170,6 @@ namespace IvyBus } } - - internal static String getDomain(string net) - { - int sep_index = net.LastIndexOf(":"); - if (sep_index != - 1) - { - net = net.Substring(0, (sep_index) - (0)); - } - try - { - net += ".255.255.255"; - Regex exp = new Regex("^(\\d+\\.\\d+\\.\\d+\\.\\d+).*"); - net = exp.Replace(net, "$1"); - } - catch (ArgumentException e) - { - traceDebug("Bad broascat addr " + net + "error " + e.Message); - return null; - } - return net; - } - - internal static int getPort(string net) - { - if (net == null) return Ivy.DEFAULT_PORT; - int sep_index = net.LastIndexOf(":"); - int port = (sep_index == - 1)?Ivy.DEFAULT_PORT:Int32.Parse(net.Substring(sep_index + 1)); - return port; - } [Conditional("DEBUG")] private static void traceDebug(string s) { -- cgit v1.1