summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfcolin2007-02-01 10:08:06 +0000
committerfcolin2007-02-01 10:08:06 +0000
commitf41daafd596f0a0f478d6073642518f882dc8fe1 (patch)
treecd8180e6eb9afcdf5a25b5e1cf777302505fed9a
parent10ae907d7c0290e65a360a163b2bb0dfcf107db3 (diff)
downloadivy-csharp-f41daafd596f0a0f478d6073642518f882dc8fe1.zip
ivy-csharp-f41daafd596f0a0f478d6073642518f882dc8fe1.tar.gz
ivy-csharp-f41daafd596f0a0f478d6073642518f882dc8fe1.tar.bz2
ivy-csharp-f41daafd596f0a0f478d6073642518f882dc8fe1.tar.xz
Utilisateur : Fcolin Date : 6/12/05 Heure : 16:57 Archivé dans $/CSharp/Ivy/IvyProbe Commentaire: (vss 5)
-rw-r--r--CSharp/Ivy/IvyProbeConsole/IvyProbeConsole.cs16
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);
}