From ebfc3372a6d1574378096fbeef25d2941d178d4a Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 12:53:26 +0000 Subject: Utilisateur : Fcolin Date : 31/01/01 Heure : 11:18 Archivé dans $/Ivy (vss 4) --- Bus/Ivy/BufferedSocket.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Bus/Ivy') diff --git a/Bus/Ivy/BufferedSocket.cxx b/Bus/Ivy/BufferedSocket.cxx index d19b68f..63fd6c0 100644 --- a/Bus/Ivy/BufferedSocket.cxx +++ b/Bus/Ivy/BufferedSocket.cxx @@ -69,7 +69,7 @@ void CBufferedSocket::OnReceive(int nErrorCode) } ptr += nb; - assert ( ptr < (buf +sizeof( buf ))); + ASSERT( ptr < (buf +sizeof( buf ))); *ptr = '\0'; ptr = buf; while( (ptr_nl = strchr( ptr, '\n' ))) @@ -101,8 +101,8 @@ void CBufferedSocket::SetSeparator( char sep ) } void CBufferedSocket::OnWakeup() { - String msg; - BOOL empty; + string msg; + bool empty; try { // on essaye de garder la section critique a l'interieur de la boucle @@ -134,7 +134,7 @@ void CBufferedSocket::OnWakeup() //buf_out.push_front( msg); //LeaveCriticalSection( &m_CritSection ); } - else TRACE("CBufferedSocket::OnWakeup error %d Sending buffer %s \n",err,msg.c_str()); + else TRACE("CBufferedSocket::OnWakeup error %d Sending buffer %s \n",err,msg); } @@ -154,12 +154,12 @@ void CBufferedSocket::Send ( const char * data ) //BOOL toBeSignaled; EnterCriticalSection( &m_CritSection ); //toBeSignaled = buf_out.IsEmpty() && connected; - buf_out.push_back( String(data) ); + buf_out.push_back( string(data) ); LeaveCriticalSection( &m_CritSection ); //TRACE("CBufferedSocket::Send Adding buffer to send count %d\n",buf_out.size()); if ( connected ) { - BOOL ok = WSASetEvent( m_hEvent[1] ); - if ( !ok ) TRACE( "CBufferedSocket::Send Error SetEvent %d\n", WSAGetLastError()); +// BOOL ok = WSASetEvent( m_hEvent[1] ); +// if ( !ok ) TRACE( "CBufferedSocket::Send Error SetEvent %d\n", WSAGetLastError()); } } -- cgit v1.1