From 6b518c7b277f2db1f051449408796c85229253c4 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 12:53:50 +0000 Subject: Utilisateur : Fcolin Date : 23/09/05 Heure : 15:27 Archivé dans $/Bus/Ivy Commentaire: (vss 16) --- Bus/Ivy/BufferedSocket.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Bus') diff --git a/Bus/Ivy/BufferedSocket.cxx b/Bus/Ivy/BufferedSocket.cxx index cae2404..11eecf5 100644 --- a/Bus/Ivy/BufferedSocket.cxx +++ b/Bus/Ivy/BufferedSocket.cxx @@ -34,11 +34,11 @@ void CBufferedSocket::OnReceive(int nErrorCode) { char *ptr_sep; char *ptr; - long nb_to_read = 0; - long nb; + size_t nb_to_read = 0; + size_t nb; SOCKADDR addr; - int len = sizeof( addr ); + size_t len = sizeof( addr ); /* limitation taille buffer */ nb_to_read = buffer_size - (current_ptr - buffer ); @@ -117,8 +117,8 @@ void CBufferedSocket::OnSend( int nErrorCode ) { // TRACE("CBufferedSocket::OnSend Sending buffer %s\n",msg.c_str()); - int lg = msg.length(); - int sent = CThreadedSocket::Send( msg.c_str(), lg ); + size_t lg = msg.length(); + size_t sent = CThreadedSocket::Send( msg.c_str(), lg ); if ( sent == lg ) { // emission correcte on enleve le msg de la file EnterCriticalSection( &m_CritSection ); -- cgit v1.1