summaryrefslogtreecommitdiff
path: root/CSharp/Ivy/IvyPPC/IvyClient.cs
diff options
context:
space:
mode:
authorfcolin2007-02-01 09:57:31 +0000
committerfcolin2007-02-01 09:57:31 +0000
commit98c7f227ccfac55acc88b02b2d623e90c3d29334 (patch)
treee12fca8074abb60a5c7db6cbc329b1f64a88a117 /CSharp/Ivy/IvyPPC/IvyClient.cs
parent174ef259b00f3f7eb5b1c46edebad999c8bfdf93 (diff)
downloadivy-csharp-98c7f227ccfac55acc88b02b2d623e90c3d29334.zip
ivy-csharp-98c7f227ccfac55acc88b02b2d623e90c3d29334.tar.gz
ivy-csharp-98c7f227ccfac55acc88b02b2d623e90c3d29334.tar.bz2
ivy-csharp-98c7f227ccfac55acc88b02b2d623e90c3d29334.tar.xz
Utilisateur : Fcolin Date : 4/07/03 Heure : 18:39 Archivé dans $/EScribe/Ivy Commentaire: (vss 5)
Diffstat (limited to 'CSharp/Ivy/IvyPPC/IvyClient.cs')
-rw-r--r--CSharp/Ivy/IvyPPC/IvyClient.cs22
1 files changed, 11 insertions, 11 deletions
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
/// <param name="message">the string that will be match-tested
///
/// </param>
- 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
/// <summary> the code of the thread handling the incoming messages.
/// </summary>
- 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");