Changeset 25:fe70f0063cae in xplcommon
- Timestamp:
- 01/02/13 07:47:31 (12 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/xplcommon/win32
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/xplcommon/win32/LocalAcceptor.h
r24 r25 133 133 if (!accepted) return 0; 134 134 135 LocalSocket* s = new LocalSocket(waiter, getServerSocket().releaseHandle(),135 LocalSocket* s = new LocalSocket(waiter, overlappable.releaseHandle(), 136 136 readingCapacity, writingCapacity); 137 137 accepted = false; … … 144 144 size_t writingCapacity) 145 145 { 146 return getSocket( getServerSocket().waiter,146 return getSocket(overlappable.getWaiter(), 147 147 readingCapacity, writingCapacity); 148 148 } -
src/xplcommon/win32/LocalServerSocketBase.cc
r22 r25 69 69 //------------------------------------------------------------------------------ 70 70 71 HANDLE LocalServerSocketBase::releaseHandle()72 {73 HANDLE h = handle;74 handle = 0;75 return h;76 }77 78 //------------------------------------------------------------------------------79 80 71 // Local Variables: 81 72 // mode: C++ -
src/xplcommon/win32/LocalServerSocketBase.h
r22 r25 76 76 bool connectNamedPipe(Overlapped* overlapped); 77 77 78 /**79 * Get the handle and clear it.80 */81 HANDLE releaseHandle();82 83 78 friend class LocalAcceptor; 84 79 }; -
src/xplcommon/win32/Overlappable.h
r21 r25 86 86 bool hasWaiter() const; 87 87 88 /** 89 * Get the handle and clear it. 90 */ 91 HANDLE releaseHandle(); 92 88 93 friend class Completer; 89 94 }; … … 122 127 //------------------------------------------------------------------------------ 123 128 129 inline HANDLE Overlappable::releaseHandle() 130 { 131 HANDLE h = handle; 132 handle = 0; 133 return h; 134 } 135 136 //------------------------------------------------------------------------------ 137 124 138 } /* namespace xplcommon::win32 */ } /* namespace xplcommon */ 125 139
Note:
See TracChangeset
for help on using the changeset viewer.