Ignore:
Timestamp:
Nov 10, 1999, 5:36:16 PM (26 years ago)
Author:
phaller
Message:

Fix: SetLastError/GetLastError behaviour changed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wsock32/async.cpp

    r1588 r1690  
    1 /* $Id: async.cpp,v 1.12 1999-11-04 01:13:41 phaller Exp $ */
     1/* $Id: async.cpp,v 1.13 1999-11-10 16:36:15 phaller Exp $ */
    22
    33/*
     
    4848
    4949ODINDEBUGCHANNEL(WSOCK32-ASYNC)
     50
     51
     52typedef 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
     59typedef struct tagSocketAsync
     60{
     61  int hSocket; /* operating system socket descriptor */
     62  int iStatus;
     63} SOCKETASYNC, *PSOCKETASYNC;
    5064
    5165
     
    122136void _Optlink WorkerThreadProc(void* pParam);
    123137BOOL _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)
    128138
    129139
     
    10001010  ulEvent = (ULONG) pRequest->ul2;
    10011011
     1012  //@@@PH to do
     1013  // 1. automatically set socket to non-blocking mode
     1014
    10021015  //@@@PH how to implement other events?
     1016
    10031017
    10041018  // finally do the select!
Note: See TracChangeset for help on using the changeset viewer.