diff options
Diffstat (limited to 'CSharp/Ivy/IvyProbeConsole')
-rw-r--r-- | CSharp/Ivy/IvyProbeConsole/IvyProbeConsole.cs | 16 |
1 files changed, 4 insertions, 12 deletions
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);
}
|