Changeset 22:d13fbc745959 in xplcommon for src/xplcommon/win32/LocalConnector.cc
- Timestamp:
- 01/02/13 06:43:16 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/xplcommon/win32/LocalConnector.cc
r21 r22 42 42 bool LocalConnector::connect() 43 43 { 44 printf("LocalConnector::connect0\n");45 44 if (connected) return true; 45 if (failed()) return false; 46 46 47 printf("LocalConnector::connect3\n"); 48 49 HANDLE handle = CreateFile(name, GENERIC_READ|GENERIC_WRITE, 50 0, 0, OPEN_EXISTING, 51 FILE_FLAG_NO_BUFFERING | FILE_FLAG_OVERLAPPED, 0); 52 printf("LocalConnector::connect4\n"); 53 if (handle!=0) { 54 printf("LocalConnector::connect5\n"); 55 socket.handle = handle; 47 if (socket.connect(path)) { 56 48 connected = true; 57 49 return true; 58 50 } else { 59 printf("LocalConnector::connect6\n");60 socket.setErrorCode(GetLastError());61 51 return false; 62 52 }
Note:
See TracChangeset
for help on using the changeset viewer.