diff options
author | fcolin | 2007-02-01 12:53:44 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 12:53:44 +0000 |
commit | 75985b9e4816e552b63bdb483cd41e61006e637d (patch) | |
tree | 57de0d5bf14b4b16279c7d22ffe112cc7e5f92df /Bus/Ivy/BufferedSocket.cxx | |
parent | 08b6dedbfa6c4da4cb4fcc7f469adc0c5eb5bf8a (diff) | |
download | ivy-cplusplus-75985b9e4816e552b63bdb483cd41e61006e637d.zip ivy-cplusplus-75985b9e4816e552b63bdb483cd41e61006e637d.tar.gz ivy-cplusplus-75985b9e4816e552b63bdb483cd41e61006e637d.tar.bz2 ivy-cplusplus-75985b9e4816e552b63bdb483cd41e61006e637d.tar.xz |
Utilisateur : Fcolin Date : 1/06/05 Heure : 16:45 Archivé dans $/Bus/Ivy Commentaire: (vss 13)
Diffstat (limited to 'Bus/Ivy/BufferedSocket.cxx')
-rw-r--r-- | Bus/Ivy/BufferedSocket.cxx | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/Bus/Ivy/BufferedSocket.cxx b/Bus/Ivy/BufferedSocket.cxx index 03a2704..864da25 100644 --- a/Bus/Ivy/BufferedSocket.cxx +++ b/Bus/Ivy/BufferedSocket.cxx @@ -2,7 +2,7 @@ //
//////////////////////////////////////////////////////////////////////
-#include "stdafx.h"
+#include "IvyStdAfx.h"
#include "BufferedSocket.h"
@@ -60,27 +60,27 @@ void CBufferedSocket::OnReceive(int nErrorCode) Close();
return;
}
-
- ptr += nb;
- ASSERT( ptr < (buf +sizeof( buf )));
- *ptr = '\0';
- ptr = buf;
- while( (ptr_nl = strchr( ptr, '\n' )))
- {
- *ptr_nl = '\0';
- //TRACE("message %s\n", ptr );
- OnReceive( ptr );
- ptr = ++ptr_nl;
- }
+
+ ptr += nb;
+ ASSERT( ptr < (buf +sizeof( buf )));
+ *ptr = '\0';
+ ptr = buf;
+ while( (ptr_nl = strchr( ptr, '\n' )))
+ {
+ *ptr_nl = '\0';
+ //TRACE("message %s\n", ptr );
+ OnReceive( ptr );
+ ptr = ++ptr_nl;
+ }
if ( *ptr != '\0' )
- { /* recopie ligne incomplete au debut du buffer */
- strcpy( buf, ptr );
- ptr = buf + strlen(buf);
- }
- else
- {
- ptr = buf;
- }
+ { /* recopie ligne incomplete au debut du buffer */
+ strcpy( buf, ptr );
+ ptr = buf + strlen(buf);
+ }
+ else
+ {
+ ptr = buf;
+ }
}
|