summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfcolin2007-02-01 12:53:42 +0000
committerfcolin2007-02-01 12:53:42 +0000
commit22aa1c6735a22db795f7f10679d285beda36d9be (patch)
treeaa31f47494fbaa62558f38d119194f7726677e8a
parentfb5f1f4e3561eba211e9cafc5ea290f2adb88200 (diff)
downloadivy-cplusplus-22aa1c6735a22db795f7f10679d285beda36d9be.zip
ivy-cplusplus-22aa1c6735a22db795f7f10679d285beda36d9be.tar.gz
ivy-cplusplus-22aa1c6735a22db795f7f10679d285beda36d9be.tar.bz2
ivy-cplusplus-22aa1c6735a22db795f7f10679d285beda36d9be.tar.xz
Utilisateur : Fcolin Date : 9/02/04 Heure : 15:25 Archivé dans $/Bus/Ivy Commentaire: (vss 12)
-rw-r--r--Ivy/BufferedSocket.cxx14
1 files changed, 9 insertions, 5 deletions
diff --git a/Ivy/BufferedSocket.cxx b/Ivy/BufferedSocket.cxx
index 0265e3b..03a2704 100644
--- a/Ivy/BufferedSocket.cxx
+++ b/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;
}
}