diff options
author | Othmar Gsenger <otti@anytun.org> | 2008-02-28 22:35:07 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2008-02-28 22:35:07 +0000 |
commit | 86aa1489b32fc7e63b19a9eb69906c4236e8e1db (patch) | |
tree | 204fb3ee2bd854e52b5ce4f4ff9da8e5a877863a /syncClientSocket.cpp | |
parent | changed types (diff) |
length to size
Diffstat (limited to 'syncClientSocket.cpp')
-rw-r--r-- | syncClientSocket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/syncClientSocket.cpp b/syncClientSocket.cpp index c68586a..fdda068 100644 --- a/syncClientSocket.cpp +++ b/syncClientSocket.cpp @@ -49,7 +49,7 @@ void SyncClientSocket::OnRawData(const char *buf,size_t len) } while (1) { - if(missing_chars==-1 && iss_.str().length()>5) + if(missing_chars==-1 && iss_.str().size()>5) { char * buffer = new char [6]; iss_.read(buffer,6); @@ -59,7 +59,7 @@ void SyncClientSocket::OnRawData(const char *buf,size_t len) cLog.msg(Log::PRIO_NOTICE) << "recieved sync inforamtaion from " << GetRemoteHostname() <<" "<<tmp.str()<<"bytes of data"<< std::endl; delete buffer; } else - if(missing_chars>0 && missing_chars<=static_cast<int32_t>(iss_.str().length())) + if(missing_chars>0 && missing_chars<=static_cast<int32_t>(iss_.str().size())) { char * buffer = new char [missing_chars]; iss_.read(buffer,missing_chars); |