src/network/socket/qlocalsocket_win.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
   361 bool QLocalSocket::canReadLine() const
   361 bool QLocalSocket::canReadLine() const
   362 {
   362 {
   363     Q_D(const QLocalSocket);
   363     Q_D(const QLocalSocket);
   364     if (state() != ConnectedState)
   364     if (state() != ConnectedState)
   365         return false;
   365         return false;
   366     return (d->readBuffer.indexOf('\n') != -1 || QIODevice::canReadLine());
   366     return (QIODevice::canReadLine()
       
   367             || d->readBuffer.indexOf('\n', d->actualReadBufferSize) != -1);
   367 }
   368 }
   368 
   369 
   369 void QLocalSocket::close()
   370 void QLocalSocket::close()
   370 {
   371 {
   371     Q_D(QLocalSocket);
   372     Q_D(QLocalSocket);