diff options
author | fcolin | 2007-02-01 10:02:08 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 10:02:08 +0000 |
commit | 072e6d31ab856b748c0dd7f43c86fe622cbec043 (patch) | |
tree | b684b4cb5787f537da188299a6c239451f7e6753 /CSharp | |
parent | d4556814b5ae8b2f5598b4595a462860d9294673 (diff) | |
download | ivy-csharp-072e6d31ab856b748c0dd7f43c86fe622cbec043.zip ivy-csharp-072e6d31ab856b748c0dd7f43c86fe622cbec043.tar.gz ivy-csharp-072e6d31ab856b748c0dd7f43c86fe622cbec043.tar.bz2 ivy-csharp-072e6d31ab856b748c0dd7f43c86fe622cbec043.tar.xz |
Utilisateur : Fcolin Date : 20/04/06 Heure : 14:00 Archivé dans $/CSharp/Ivy/Ivy Commentaire: mise au point timer , ca manque de precision !!! (vss 14)
Diffstat (limited to 'CSharp')
-rw-r--r-- | CSharp/Ivy/IvyPPC/IvyTCPStreamV3.cs | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/CSharp/Ivy/IvyPPC/IvyTCPStreamV3.cs b/CSharp/Ivy/IvyPPC/IvyTCPStreamV3.cs index 70c31b0..259d589 100644 --- a/CSharp/Ivy/IvyPPC/IvyTCPStreamV3.cs +++ b/CSharp/Ivy/IvyPPC/IvyTCPStreamV3.cs @@ -55,13 +55,20 @@ namespace IvyBus private void sendMsg(MessageType msgType, ushort msgId, string msgData)
{
- output.Write((ushort)msgType);
- output.Write( ' ' );
- output.Write( msgId );
- output.Write( ARG_START );
- output.Write( msgData );
- output.Write( MSG_END);
- output.Flush();
+ try
+ {
+ output.Write((ushort)msgType);
+ output.Write(' ');
+ output.Write(msgId);
+ output.Write(ARG_START);
+ output.Write(msgData);
+ output.Write(MSG_END);
+ output.Flush();
+ }
+ catch (IOException ex)
+ {
+ // Broken pipe
+ }
}
void IvyProtocol.TokenStartRegexp(ushort port, string appName)
{
|