From 1a905f799ff0f1230b72acc069075fa67afbabc5 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 09:55:18 +0000 Subject: Utilisateur : Fcolin Date : 24/01/06 Heure : 15:44 Archivé dans $/CSharp/Ivy/Ivy Commentaire: (vss 41) --- CSharp/Ivy/IvyPPC/Ivy.cs | 49 ++++++++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 22 deletions(-) (limited to 'CSharp') diff --git a/CSharp/Ivy/IvyPPC/Ivy.cs b/CSharp/Ivy/IvyPPC/Ivy.cs index 40caf48..fc358fb 100644 --- a/CSharp/Ivy/IvyPPC/Ivy.cs +++ b/CSharp/Ivy/IvyPPC/Ivy.cs @@ -128,6 +128,7 @@ namespace IvyBus } } + /// AppId the Application Unique ID [Browsable(false)] public string AppId { @@ -137,6 +138,7 @@ namespace IvyBus } } + /// AppPriority the Application Priority: the clients list is sorted against priority [Category("Ivy")] public ushort AppPriority { @@ -183,6 +185,25 @@ namespace IvyBus } } + /// ReadyMessage message send when Application receive all the regexp at the connection of the client + [Category("Ivy")] + public string ReadyMessage + { + get { return ready_message; } + set { ready_message = value; } + } + + + [Category("Ivy")] + public Control SyncControl + { + get { return syncControl; } + set + { + syncControl = value; + AutoBinding(syncControl); + } + } internal class MyTcpListener : TcpListener { public MyTcpListener(IPAddress address, int port) : base(address, port) @@ -233,23 +254,7 @@ namespace IvyBus // for synchronous event private Control syncControl = null; - [Category("Ivy")] - public string ReadyMessage - { - get { return ready_message; } - set { ready_message = value; } - } - - - [Category("Ivy")] - public Control SyncControl - { - get { return syncControl; } - set { - syncControl = value; - AutoBinding(syncControl); - } - } + public Ivy() { clients = new List(); @@ -865,7 +870,7 @@ namespace IvyBus { traceDebug("Error IvyServer exception: " + e.Message); - Console.Error.WriteLine("Ivy server socket reader caught an exception " + e.Message); + Console.WriteLine("Ivy server socket reader caught an exception " + e.Message); // e.printStackTrace(); } catch (SocketException e) @@ -876,12 +881,12 @@ namespace IvyBus } traceDebug("Ivy service Thread stopped"); } - - - private void traceDebug(string s) + + + internal void traceDebug(string s) { if (debug) - Console.Error.WriteLine("-->ivy<-- " + s); + Console.WriteLine("-->ivy<-- " + s); } internal class Domain -- cgit v1.1