From 98c7f227ccfac55acc88b02b2d623e90c3d29334 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 09:57:31 +0000 Subject: Utilisateur : Fcolin Date : 4/07/03 Heure : 18:39 Archivé dans $/EScribe/Ivy Commentaire: (vss 5) --- CSharp/Ivy/IvyPPC/IvyClient.cs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'CSharp/Ivy/IvyPPC/IvyClient.cs') diff --git a/CSharp/Ivy/IvyPPC/IvyClient.cs b/CSharp/Ivy/IvyPPC/IvyClient.cs index 9757d2f..4035b2a 100644 --- a/CSharp/Ivy/IvyPPC/IvyClient.cs +++ b/CSharp/Ivy/IvyPPC/IvyClient.cs @@ -24,7 +24,7 @@ namespace IvyBus using System.Net.Sockets; using System.Configuration; - public class MyTcpClient : TcpClient + internal class MyTcpClient : TcpClient { public IPAddress RemoteAddress { @@ -55,7 +55,7 @@ namespace IvyBus public class IvyClient { - public virtual String ApplicationName + public String ApplicationName { get { @@ -137,7 +137,7 @@ namespace IvyBus private volatile Thread clientThread; // volatile to ensure the quick communication private Int32 clientKey; private static bool doping = (ConfigurationSettings.AppSettings["IVY_PING"] != null); - internal const int PINGTIMEOUT = 5000; + private const int PINGTIMEOUT = 5000; private volatile Thread pingerThread; // protected variables @@ -192,7 +192,7 @@ namespace IvyBus send(MessageType.AddRegexp, id, regexp); /* perhaps we should perform some checking here */ } - public virtual void delRegexp(int id) + internal void delRegexp(int id) { send(MessageType.DelRegexp, id, ""); } @@ -204,7 +204,7 @@ namespace IvyBus /// the string that will be match-tested /// /// - public void sendDirectMsg(int id, String message) + internal void sendDirectMsg(int id, String message) { send(MessageType.DirectMsg, id, message); } @@ -277,7 +277,7 @@ namespace IvyBus /// the code of the thread handling the incoming messages. /// - public void Run() + private void Run() { String msg = null; try @@ -567,11 +567,11 @@ namespace IvyBus } } - internal void sendPong(String s) + private void sendPong(String s) { send(MessageType.Pong, 0, s); } - public void sendPing(String s) + private void sendPing(String s) { send(MessageType.Ping, 0, s); } @@ -585,11 +585,11 @@ namespace IvyBus send(MessageType.Bye, 0, message); } - public virtual void sendDie() + private void sendDie() { send(MessageType.Die, 0, ""); } - public virtual void sendDie(String message) + private void sendDie(String message) { send(MessageType.Die, 0, message); } @@ -607,7 +607,7 @@ namespace IvyBus } internal bool isPinging = false; - public void PingerRun() + private void PingerRun() { isPinging = true; traceDebug("Pinger Thread started"); -- cgit v1.1