diff options
author | fcolin | 2007-02-01 12:53:42 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 12:53:42 +0000 |
commit | 08b6dedbfa6c4da4cb4fcc7f469adc0c5eb5bf8a (patch) | |
tree | a311fc22098ecb4af4806b54749bdf5795acf165 /Bus/Ivy/BufferedSocket.cxx | |
parent | 4358f65b04a8f5088f9a552bc7a6b58aead094fc (diff) | |
download | ivy-cplusplus-08b6dedbfa6c4da4cb4fcc7f469adc0c5eb5bf8a.zip ivy-cplusplus-08b6dedbfa6c4da4cb4fcc7f469adc0c5eb5bf8a.tar.gz ivy-cplusplus-08b6dedbfa6c4da4cb4fcc7f469adc0c5eb5bf8a.tar.bz2 ivy-cplusplus-08b6dedbfa6c4da4cb4fcc7f469adc0c5eb5bf8a.tar.xz |
Utilisateur : Fcolin Date : 9/02/04 Heure : 15:25 Archivé dans $/Bus/Ivy Commentaire: (vss 12)
Diffstat (limited to 'Bus/Ivy/BufferedSocket.cxx')
-rw-r--r-- | Bus/Ivy/BufferedSocket.cxx | 14 |
1 files changed, 9 insertions, 5 deletions
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;
}
}
|