From 35c6d8cd34c53807f2e06e2fba0e22c78177c365 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 09:50:19 +0000 Subject: 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) --- CSharp/Ivy/Ivy/IvyTCPStreamV3.cs | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'CSharp/Ivy') diff --git a/CSharp/Ivy/Ivy/IvyTCPStreamV3.cs b/CSharp/Ivy/Ivy/IvyTCPStreamV3.cs index 70c31b0..259d589 100644 --- a/CSharp/Ivy/Ivy/IvyTCPStreamV3.cs +++ b/CSharp/Ivy/Ivy/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) { -- cgit v1.1