diff options
author | fcolin | 2007-02-01 12:53:50 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 12:53:50 +0000 |
commit | 9b22935b0b601fa0ebce1ced5d8eb2c7499eb2a0 (patch) | |
tree | 3d01152578368719b95851d5c81798977342ecd1 /Ivy/BufferedSocket.cxx | |
parent | 6df79c23c311d014c426ab00d3bc3c9a8204b429 (diff) | |
download | ivy-cplusplus-9b22935b0b601fa0ebce1ced5d8eb2c7499eb2a0.zip ivy-cplusplus-9b22935b0b601fa0ebce1ced5d8eb2c7499eb2a0.tar.gz ivy-cplusplus-9b22935b0b601fa0ebce1ced5d8eb2c7499eb2a0.tar.bz2 ivy-cplusplus-9b22935b0b601fa0ebce1ced5d8eb2c7499eb2a0.tar.xz |
Utilisateur : Fcolin Date : 23/09/05 Heure : 15:27 Archivé dans $/Bus/Ivy Commentaire: (vss 16)
Diffstat (limited to 'Ivy/BufferedSocket.cxx')
-rw-r--r-- | Ivy/BufferedSocket.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Ivy/BufferedSocket.cxx b/Ivy/BufferedSocket.cxx index cae2404..11eecf5 100644 --- a/Ivy/BufferedSocket.cxx +++ b/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 );
|