[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    socket_qt_addon: kdelibs/kdecore
From:       Thiago Macieira <thiagom () mail ! com>
Date:       2003-10-26 1:53:39
[Download RAW message or body]

CVS commit by thiago: 

Allow bytesAvailable() to return the buffer size even after the socket
has closed, since the input buffer might be dirty.


  M +2 -2      kextsock.cpp   1.58.2.7


--- kdelibs/kdecore/kextsock.cpp  #1.58.2.6:1.58.2.7
@@ -1518,5 +1518,5 @@ int KExtendedSocket::unreadBlock(const c
 int KExtendedSocket::bytesAvailable() const
 {
-  if (d->status < connected || d->status >= closing || d->flags & passiveSocket)
+  if (d->status < connected || d->flags & passiveSocket)
     return -2;
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic