Changeset 1690 for trunk/src/wsock32/async.cpp
- Timestamp:
- Nov 10, 1999, 5:36:16 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wsock32/async.cpp
r1588 r1690 1 /* $Id: async.cpp,v 1.1 2 1999-11-04 01:13:41phaller Exp $ */1 /* $Id: async.cpp,v 1.13 1999-11-10 16:36:15 phaller Exp $ */ 2 2 3 3 /* … … 48 48 49 49 ODINDEBUGCHANNEL(WSOCK32-ASYNC) 50 51 52 typedef enum tagSocketStatus 53 { 54 SOCKSTAT_UNKNOWN = 0, // unknown socket state 55 SOCKSTAT_NORMAL, // normal socket state 56 SOCKSTAT_CONNECT_PENDING // non-blocking connect attempted 57 }; 58 59 typedef struct tagSocketAsync 60 { 61 int hSocket; /* operating system socket descriptor */ 62 int iStatus; 63 } SOCKETASYNC, *PSOCKETASYNC; 50 64 51 65 … … 122 136 void _Optlink WorkerThreadProc(void* pParam); 123 137 BOOL _System PostMessageA(HWND hwnd, UINT ulMessage, WPARAM wParam, LPARAM lParam); 124 125 void _System SetLastError(int iError);126 int _System GetLastError(void);127 #define WSASetLastError(a) SetLastError(a)128 138 129 139 … … 1000 1010 ulEvent = (ULONG) pRequest->ul2; 1001 1011 1012 //@@@PH to do 1013 // 1. automatically set socket to non-blocking mode 1014 1002 1015 //@@@PH how to implement other events? 1016 1003 1017 1004 1018 // finally do the select!
Note:
See TracChangeset
for help on using the changeset viewer.