summaryrefslogtreecommitdiff
path: root/Ivy/BufferedSocket.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Ivy/BufferedSocket.cxx')
-rw-r--r--Ivy/BufferedSocket.cxx42
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;
+ }
}