diff options
author | fcolin | 2007-02-01 09:57:33 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 09:57:33 +0000 |
commit | 1024eeccd6ef3dda7635f93bf78c557bb1039869 (patch) | |
tree | 28ad72943c3b79d140ca29ed058780248ac72373 /CSharp/Ivy/IvyPPC/IvyClient.cs | |
parent | 98c7f227ccfac55acc88b02b2d623e90c3d29334 (diff) | |
download | ivy-csharp-1024eeccd6ef3dda7635f93bf78c557bb1039869.zip ivy-csharp-1024eeccd6ef3dda7635f93bf78c557bb1039869.tar.gz ivy-csharp-1024eeccd6ef3dda7635f93bf78c557bb1039869.tar.bz2 ivy-csharp-1024eeccd6ef3dda7635f93bf78c557bb1039869.tar.xz |
Utilisateur : Fcolin Date : 7/07/03 Heure : 11:58 Archivé dans $/EScribe/Ivy Commentaire: (vss 6)
Diffstat (limited to 'CSharp/Ivy/IvyPPC/IvyClient.cs')
-rw-r--r-- | CSharp/Ivy/IvyPPC/IvyClient.cs | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/CSharp/Ivy/IvyPPC/IvyClient.cs b/CSharp/Ivy/IvyPPC/IvyClient.cs index 4035b2a..2244b17 100644 --- a/CSharp/Ivy/IvyPPC/IvyClient.cs +++ b/CSharp/Ivy/IvyPPC/IvyClient.cs @@ -204,7 +204,7 @@ namespace IvyBus /// <param name="message">the string that will be match-tested
///
/// </param>
- internal void sendDirectMsg(int id, String message)
+ public void sendDirectMsg(int id, String message)
{
send(MessageType.DirectMsg, id, message);
}
@@ -299,6 +299,8 @@ namespace IvyBus // early stop during readLine()
if (doping && (pingerThread != null))
pingerThread.Interrupt();
+ if ( msg.Length == 0 )
+ Console.Error.WriteLine("Should close");
newParseMsg(msg);
}
else
@@ -312,12 +314,20 @@ namespace IvyBus Console.Error.WriteLine( ie.Message );
Console.Error.WriteLine( ie.StackTrace);
running = false;
+ break;
}
catch (IOException e)
{
- traceDebug("abnormally Disconnected from " + RemoteAddress + ":" + RemotePort);
- Console.Error.WriteLine( e.Message );
- Console.Error.WriteLine( e.StackTrace);
+ if ( e.InnerException is SocketException )
+ {
+
+ }
+ else
+ {
+ traceDebug("abnormally Disconnected from " + RemoteAddress + ":" + RemotePort);
+ Console.Error.WriteLine( e.Message );
+ Console.Error.WriteLine( e.StackTrace);
+ }
running = false;
break;
}
@@ -571,7 +581,7 @@ namespace IvyBus {
send(MessageType.Pong, 0, s);
}
- private void sendPing(String s)
+ public void sendPing(String s)
{
send(MessageType.Ping, 0, s);
}
@@ -585,7 +595,7 @@ namespace IvyBus send(MessageType.Bye, 0, message);
}
- private void sendDie()
+ public void sendDie()
{
send(MessageType.Die, 0, "");
}
|