Changeset 1468 for trunk/src/wsock32/async.cpp
- Timestamp:
- Oct 27, 1999, 10:38:05 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wsock32/async.cpp
r1460 r1468 1 /* $Id: async.cpp,v 1. 9 1999-10-26 21:43:00phaller Exp $ */1 /* $Id: async.cpp,v 1.10 1999-10-27 08:38:03 phaller Exp $ */ 2 2 3 3 /* … … 62 62 struct timeval); 63 63 64 // wsock32.cpp: error code translation 65 int iTranslateSockErrToWSock(int iError); 64 66 65 67 … … 634 636 if (pHostent == NULL) // error ? 635 637 { 636 rc = sock_errno(); // assuming OS/2 return codes are 637 WSASetLastError(rc); // same as Winsock return codes 638 // build error return code 639 rc = iTranslateSockErrToWSock(sock_errno()); 640 WSASetLastError(rc); 638 641 } 639 642 else … … 694 697 if (pHostent == NULL) // error ? 695 698 { 696 rc = sock_errno(); // assuming OS/2 return codes are 697 WSASetLastError(rc); // same as Winsock return codes 698 699 dprintf ((" pHostent==NULL -> rc=%d\n", rc)); 699 // build error return code 700 rc = iTranslateSockErrToWSock(sock_errno()); 701 WSASetLastError(rc); 700 702 } 701 703 else … … 756 758 if (pProtoent == NULL) // error ? 757 759 { 758 rc = sock_errno(); // assuming OS/2 return codes are 759 WSASetLastError(rc); // same as Winsock return codes 760 // build error return code 761 rc = iTranslateSockErrToWSock(sock_errno()); 762 WSASetLastError(rc); 760 763 } 761 764 else … … 814 817 if (pProtoent == NULL) // error ? 815 818 { 816 rc = sock_errno(); // assuming OS/2 return codes are 817 WSASetLastError(rc); // same as Winsock return codes 819 // build error return code 820 rc = iTranslateSockErrToWSock(sock_errno()); 821 WSASetLastError(rc); 818 822 } 819 823 else … … 873 877 if (pServent == NULL) // error ? 874 878 { 875 rc = sock_errno(); // assuming OS/2 return codes are 876 WSASetLastError(rc); // same as Winsock return codes 879 // build error return code 880 rc = iTranslateSockErrToWSock(sock_errno()); 881 WSASetLastError(rc); 877 882 } 878 883 else … … 933 938 if (pServent == NULL) // error ? 934 939 { 935 rc = sock_errno(); // assuming OS/2 return codes are 936 WSASetLastError(rc); // same as Winsock return codes 940 // build error return code 941 rc = iTranslateSockErrToWSock(sock_errno()); 942 WSASetLastError(rc); 937 943 } 938 944 else … … 1013 1019 if (irc == 0) /* this means timeout */ 1014 1020 { 1015 lParam = WSAETIMEDOUT;/* raise error condition */1021 lParam = iTranslateSockErrToWSock(WSAETIMEDOUT);/* raise error condition */ 1016 1022 } 1017 1023 else
Note:
See TracChangeset
for help on using the changeset viewer.