From f41daafd596f0a0f478d6073642518f882dc8fe1 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 10:08:06 +0000 Subject: Utilisateur : Fcolin Date : 6/12/05 Heure : 16:57 Archivé dans $/CSharp/Ivy/IvyProbe Commentaire: (vss 5) --- CSharp/Ivy/IvyProbeConsole/IvyProbeConsole.cs | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'CSharp/Ivy/IvyProbeConsole/IvyProbeConsole.cs') diff --git a/CSharp/Ivy/IvyProbeConsole/IvyProbeConsole.cs b/CSharp/Ivy/IvyProbeConsole/IvyProbeConsole.cs index 2c1f82d..679b0c5 100644 --- a/CSharp/Ivy/IvyProbeConsole/IvyProbeConsole.cs +++ b/CSharp/Ivy/IvyProbeConsole/IvyProbeConsole.cs @@ -190,11 +190,8 @@ namespace IvyProbe else if (s.LastIndexOf(".die ") >= 0) { String target = s.Substring(5); - System.Collections.ArrayList v = bus.getIvyClientsByName(target); - if (v.Count == 0) + if (bus.Die(target, ".die command") == 0) println("no Ivy client with the name \"" + target + "\""); - for (int i = 0; i < v.Count; i++) - ((IvyClient) v[i]).sendDie(".die command"); } else if (s.LastIndexOf(".unbind ") >= 0) { @@ -217,15 +214,10 @@ namespace IvyProbe else if (s.LastIndexOf(".ping ") >= 0) { String target = s.Substring(6); - ArrayList v = bus.getIvyClientsByName(target); - if (v.Count == 0) + if (bus.Ping( target, "test") == 0) { println("no Ivy client with the name \"" + target + "\""); } - for (int i = 0; i < v.Count; i++) - { - ((IvyClient) v[i]).sendPing("test"); - } } else if ((s.LastIndexOf(".quit") >= 0) || (s.LastIndexOf(".bye") >= 0)) { @@ -278,8 +270,8 @@ namespace IvyProbe System.Environment.Exit(0); return true; } - - private void directMessage(IvyClient client, int id, byte[] arg) + + private void directMessage(IvyClient client, int id, IvyArgument arg) { println(client.ApplicationName + " direct Message " + id + arg); } -- cgit v1.1