diff options
author | fcolin | 2007-02-01 12:53:44 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 12:53:44 +0000 |
commit | 00546c6eb0c54919615c1e28858403fcd232c06a (patch) | |
tree | c6fd9ec95f6297aae4c3cdbb0ae9c834a306dcd3 /Ivy/BufferedSocket.cxx | |
parent | 22aa1c6735a22db795f7f10679d285beda36d9be (diff) | |
download | ivy-cplusplus-00546c6eb0c54919615c1e28858403fcd232c06a.zip ivy-cplusplus-00546c6eb0c54919615c1e28858403fcd232c06a.tar.gz ivy-cplusplus-00546c6eb0c54919615c1e28858403fcd232c06a.tar.bz2 ivy-cplusplus-00546c6eb0c54919615c1e28858403fcd232c06a.tar.xz |
Utilisateur : Fcolin Date : 1/06/05 Heure : 16:45 Archivé dans $/Bus/Ivy Commentaire: (vss 13)
Diffstat (limited to 'Ivy/BufferedSocket.cxx')
-rw-r--r-- | Ivy/BufferedSocket.cxx | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/Ivy/BufferedSocket.cxx b/Ivy/BufferedSocket.cxx index 03a2704..864da25 100644 --- a/Ivy/BufferedSocket.cxx +++ b/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;
+ }
}
|