From 75985b9e4816e552b63bdb483cd41e61006e637d Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 12:53:44 +0000 Subject: Utilisateur : Fcolin Date : 1/06/05 Heure : 16:45 Archivé dans $/Bus/Ivy Commentaire: (vss 13) --- Bus/Ivy/BufferedSocket.cxx | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'Bus') 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; + } } -- cgit v1.1