diff options
-rw-r--r-- | CSharp/Ivy/Ivy/IvyClient.cs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/CSharp/Ivy/Ivy/IvyClient.cs b/CSharp/Ivy/Ivy/IvyClient.cs index 9757d2f..4035b2a 100644 --- a/CSharp/Ivy/Ivy/IvyClient.cs +++ b/CSharp/Ivy/Ivy/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");
|