summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfcolin2007-02-01 12:53:50 +0000
committerfcolin2007-02-01 12:53:50 +0000
commit6b518c7b277f2db1f051449408796c85229253c4 (patch)
treef6b788973329c5772624bbd7d1518d2b51337154
parent3f1fdf4ac06e82a9e7e4e4a5d88f4c85b5f121d6 (diff)
downloadivy-cplusplus-6b518c7b277f2db1f051449408796c85229253c4.zip
ivy-cplusplus-6b518c7b277f2db1f051449408796c85229253c4.tar.gz
ivy-cplusplus-6b518c7b277f2db1f051449408796c85229253c4.tar.bz2
ivy-cplusplus-6b518c7b277f2db1f051449408796c85229253c4.tar.xz
Utilisateur : Fcolin Date : 23/09/05 Heure : 15:27 Archivé dans $/Bus/Ivy Commentaire: (vss 16)
-rw-r--r--Bus/Ivy/BufferedSocket.cxx10
1 files changed, 5 insertions, 5 deletions
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 );