Ignore:
Timestamp:
Aug 2, 2010, 9:27:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.3 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/network/socket/qlocalsocket_win.cpp

    r651 r769  
    4040****************************************************************************/
    4141
    42 #include "qlocalsocket.h"
    4342#include "qlocalsocket_p.h"
    4443
     
    109108       state(QLocalSocket::UnconnectedState)
    110109{
     110
     111
     112
     113
     114
     115
     116
     117
     118
     119
     120
     121
     122
     123
    111124}
    112125
     
    389402    d->pendingReadyRead = false;
    390403    d->pipeClosed = false;
    391     DisconnectNamedPipe(d->handle);
    392     CloseHandle(d->handle);
     404    d->destroyPipeHandles();
    393405    d->handle = INVALID_HANDLE_VALUE;
    394406    ResetEvent(d->overlapped.hEvent);
     
    413425{
    414426    Q_D(QLocalSocket);
     427
     428
     429
     430
     431
     432
     433
     434
     435
    415436    flush();
    416437    if (d->pipeWriter && d->pipeWriter->bytesToWrite() != 0) {
     
    525546{
    526547    Q_D(const QLocalSocket);
    527     return (d->handle != INVALID_HANDLE_VALUE);
     548    if (d->handle == INVALID_HANDLE_VALUE)
     549        return false;
     550
     551    return PeekNamedPipe(d->handle, NULL, 0, NULL, NULL, NULL);
    528552}
    529553
Note: See TracChangeset for help on using the changeset viewer.