summaryrefslogtreecommitdiff
path: root/Bus/Ivy/BufferedSocket.cxx
diff options
context:
space:
mode:
authorfcolin2007-02-01 12:53:26 +0000
committerfcolin2007-02-01 12:53:26 +0000
commitebfc3372a6d1574378096fbeef25d2941d178d4a (patch)
tree7817e19bba215657d8741dcabfa4effa5dcbf669 /Bus/Ivy/BufferedSocket.cxx
parentbcebdc876aa783e746956e2a3d54c312bc43b42a (diff)
downloadivy-cplusplus-ebfc3372a6d1574378096fbeef25d2941d178d4a.zip
ivy-cplusplus-ebfc3372a6d1574378096fbeef25d2941d178d4a.tar.gz
ivy-cplusplus-ebfc3372a6d1574378096fbeef25d2941d178d4a.tar.bz2
ivy-cplusplus-ebfc3372a6d1574378096fbeef25d2941d178d4a.tar.xz
Utilisateur : Fcolin Date : 31/01/01 Heure : 11:18 Archivé dans $/Ivy (vss 4)
Diffstat (limited to 'Bus/Ivy/BufferedSocket.cxx')
-rw-r--r--Bus/Ivy/BufferedSocket.cxx14
1 files changed, 7 insertions, 7 deletions
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());
}
}