summaryrefslogtreecommitdiff
path: root/IvyProbeConsole/IvyProbeConsole.cs
diff options
context:
space:
mode:
Diffstat (limited to 'IvyProbeConsole/IvyProbeConsole.cs')
-rw-r--r--IvyProbeConsole/IvyProbeConsole.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/IvyProbeConsole/IvyProbeConsole.cs b/IvyProbeConsole/IvyProbeConsole.cs
index 516d702..72d4434 100644
--- a/IvyProbeConsole/IvyProbeConsole.cs
+++ b/IvyProbeConsole/IvyProbeConsole.cs
@@ -15,6 +15,7 @@ namespace IvyProbeConsole
using System.Diagnostics;
using IvyBus;
using Gnu;
+ using System.Collections.ObjectModel;
/// <summary> Console implementation of the ivyprobe test program.
/// </summary>
@@ -164,7 +165,7 @@ namespace IvyProbeConsole
}
if (!quiet)
- System.Console.Out.WriteLine(Ivy.Domains(domain));
+ System.Console.Out.WriteLine("broadcasting on " + Ivy.GetDomain(domain));
bus.Start(domain);
@@ -273,7 +274,7 @@ namespace IvyProbeConsole
target = result.Groups["target"].Value;
ushort id = ushort.Parse(result.Groups["id"].Value);
string message = result.Groups["message"].Value;
- List<IvyClient> v = bus.GetClientsByName(target);
+ ReadOnlyCollection<IvyClient> v = bus.GetClientsByName(target);
if (v.Count == 0)
println("no Ivy client with the name \"" + target + "\"");
for (int i = 0; i < v.Count; i++)
@@ -352,7 +353,7 @@ namespace IvyProbeConsole
private void receive(object sender, IvyMessageEventArgs e)
{
String s = e.Client.ApplicationName + " sent ";
- s += string.Join(",", e.Arguments);
+ s += string.Join(",", e.GetArguments());
println(s);
}
[Conditional("DEBUG")]