Changeset 846 for trunk/src/network/socket/qlocalserver_win.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/network/socket/qlocalserver_win.cpp
r769 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected]) … … 66 66 (const wchar_t *)fullServerName.utf16(), // pipe name 67 67 PIPE_ACCESS_DUPLEX | FILE_FLAG_OVERLAPPED, // read/write access 68 PIPE_TYPE_ MESSAGE | // message type pipe69 PIPE_READMODE_ MESSAGE | // message-read mode68 PIPE_TYPE_e type pipe 69 PIPE_READMODE_e-read mode 70 70 PIPE_WAIT, // blocking mode 71 71 PIPE_UNLIMITED_INSTANCES, // max. instances … … 86 86 switch (GetLastError()) { 87 87 case ERROR_IO_PENDING: 88 88 89 break; 89 90 case ERROR_PIPE_CONNECTED: 91 90 92 SetEvent(eventHandle); 91 93 break; … … 156 158 for (int i = 0; i < listeners.size(); ) { 157 159 HANDLE handle = listeners[i].handle; 158 if (GetOverlappedResult(handle, &listeners[i].overlapped, &dummy, FALSE)) { 160 if (listeners[i].connected 161 || GetOverlappedResult(handle, &listeners[i].overlapped, &dummy, FALSE)) 162 { 159 163 listeners.removeAt(i); 160 164
Note:
See TracChangeset
for help on using the changeset viewer.