diff options
author | fcolin | 2007-02-01 10:08:06 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 10:08:06 +0000 |
commit | f41daafd596f0a0f478d6073642518f882dc8fe1 (patch) | |
tree | cd8180e6eb9afcdf5a25b5e1cf777302505fed9a /CSharp | |
parent | 10ae907d7c0290e65a360a163b2bb0dfcf107db3 (diff) | |
download | ivy-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)
Diffstat (limited to 'CSharp')
-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);
}
|