From 08b6dedbfa6c4da4cb4fcc7f469adc0c5eb5bf8a Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 12:53:42 +0000 Subject: Utilisateur : Fcolin Date : 9/02/04 Heure : 15:25 Archivé dans $/Bus/Ivy Commentaire: (vss 12) --- Bus/Ivy/BufferedSocket.cxx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'Bus/Ivy') diff --git a/Bus/Ivy/BufferedSocket.cxx b/Bus/Ivy/BufferedSocket.cxx index 0265e3b..03a2704 100644 --- a/Bus/Ivy/BufferedSocket.cxx +++ b/Bus/Ivy/BufferedSocket.cxx @@ -120,11 +120,15 @@ void CBufferedSocket::OnSend( int nErrorCode ) else { // erreur int err = this->GetLastError(); - if ( err == WSAEWOULDBLOCK ) // si la file est pleine on sort en silence ! - { - } - else - TRACE("CBufferedSocket::OnWakeup error %d Sending buffer %s \n",err,msg); + switch ( err ){ + case WSAEWOULDBLOCK: // si la file est pleine on sort en silence ! + break; + case WSAECONNABORTED: // broken pipe on sort en silence + break; + default: + TRACE("CBufferedSocket::OnWakeup error %d Sending buffer %s \n",err,msg.c_str()); + break; + } break; } } -- cgit v1.1