Changeset 46 for trunk/src/wsock32
- Timestamp:
- Jun 7, 1999, 10:58:22 PM (26 years ago)
- Location:
- trunk/src/wsock32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wsock32/makefile
r4 r46 1 # $Id: makefile,v 1.1 1999-05-24 20:20:09 ktk Exp $2 3 1 # 4 2 # PD-Win32 API … … 37 35 38 36 39 wsock32.obj: wsock32.c wsock32.h40 notify.obj: notify.c wsock32.h41 initterm.obj: initterm.c 37 wsock32.obj: wsock32.cpp wsock32.h 38 notify.obj: notify.cpp wsock32.h 39 initterm.obj: initterm.cpp 42 40 43 41 clean: -
trunk/src/wsock32/wsock32.def
r11 r46 1 1 ;Created by BLAST for IBM's compiler 2 3 2 LIBRARY WSOCK32 INITINSTANCE 4 3 DATA MULTIPLE NONSHARED 5 4 EXPORTS 5 ; _WSAFDIsSet = _OS2_WSAFDIsSet@8 6 ; Arecv = _OS2Arecv 7 ; Asend = _OS2Asend 8 ; EnumProtocolsA = _OS2EnumProtocolsA 9 ; EnumProtocolsW = _OS2EnumProtocolsW 10 ; GetAddressByNameA = _OS2GetAddressByNameA 11 ; GetAddressByNameW = _OS2GetAddressByNameW 12 ; GetNameByTypeA = _OS2GetNameByTypeA 13 ; GetNameByTypeW = _OS2GetNameByTypeW 14 ; GetServiceA = _OS2GetServiceA 15 ; GetServiceW = _OS2GetServiceW 16 ; GetTypeByNameA = _OS2GetTypeByNameA 17 ; GetTypeByNameW = _OS2GetTypeByNameW 18 ; NPLoadNameSpaces = _OS2NPLoadNameSpaces 19 ; SetServiceA = _OS2SetServiceA 20 ; SetServiceW = _OS2SetServiceW 21 ; TransmitFile = _OS2TransmitFile 22 accept = _OS2accept@12 @1 23 bind = _OS2bind@12 @2 24 closesocket = _OS2closesocket@4 @3 25 connect = _OS2connect@12 @4 26 getpeername = _OS2getpeername@12 @5 27 getsockname = _OS2getsockname@12 @6 28 getsockopt = _OS2getsockopt@20 @7 29 htonl = _OS2htonl@4 @8 30 htons = _OS2htons@4 @9 31 inet_addr = _OS2inet_addr@4 @10 32 inet_ntoa = _OS2inet_ntoa@4 @11 33 ioctlsocket = _OS2ioctlsocket@12 @12 34 listen = _OS2listen@8 @13 35 ntohl = _OS2ntohl@4 @14 36 ntohs = _OS2ntohs@4 @15 37 recv = _OS2recv@16 @16 38 recvfrom = _OS2recvfrom@24 @17 39 select = _OS2select@20 @18 40 send = _OS2send@16 @19 41 sendto = _OS2sendto@24 @20 42 setsockopt = _OS2setsockopt@20 @21 43 shutdown = _OS2shutdown@8 @22 44 socket = _OS2socket@12 @23 6 45 7 accept = _OS2accept@12 @1 8 bind = _OS2bind@12 @2 9 closesocket = _OS2closesocket@4 @3 10 connect = _OS2connect@12 @4 11 getpeername = _OS2getpeername@12 @5 12 getsockname = _OS2getsockname@12 @6 13 getsockopt = _OS2getsockopt@20 @7 14 htonl = _OS2htonl@4 @8 15 htons = _OS2htons@4 @9 16 inet_addr = _OS2inet_addr@4 @10 17 inet_ntoa = _OS2inet_ntoa@4 @11 18 ioctlsocket = _OS2ioctlsocket@12 @12 19 listen = _OS2listen@8 @13 20 ntohl = _OS2ntohl@4 @14 21 ntohs = _OS2ntohs@4 @15 22 recv = _OS2recv@16 @16 23 recvfrom = _OS2recvfrom@24 @17 24 select = _OS2select@20 @18 25 send = _OS2send@16 @19 26 sendto = _OS2sendto@24 @20 27 setsockopt = _OS2setsockopt@20 @21 28 shutdown = _OS2shutdown@8 @22 29 socket = _OS2socket@12 @23 30 gethostbyaddr = _OS2gethostbyaddr@12 @51 31 gethostbyname = _OS2gethostbyname@4 @52 32 getprotobyname = _OS2getprotobyname@4 @53 33 getprotobynumber = _OS2getprotobynumber@4 @54 34 getservbyname = _OS2getservbyname@8 @55 35 getservbyport = _OS2getservbyport@8 @56 36 gethostname = _OS2gethostname@8 @57 46 gethostbyaddr = _OS2gethostbyaddr@12 @51 47 gethostbyname = _OS2gethostbyname@4 @52 48 getprotobyname = _OS2getprotobyname@4 @53 49 getprotobynumber = _OS2getprotobynumber@4 @54 50 getservbyname = _OS2getservbyname@8 @55 51 getservbyport = _OS2getservbyport@8 @56 52 gethostname = _OS2gethostname@8 @57 37 53 38 WSAAsyncSelect = _OS2WSAAsyncSelect@16 @101 39 WSAAsyncGetHostByAddr = _OS2WSAAsyncGetHostByAddr@28 @102 40 WSAAsyncGetHostByName = _OS2WSAAsyncGetHostByName@20 @103 41 WSAAsyncGetProtoByNumber = _OS2WSAAsyncGetProtoByNumber@20 @104 42 WSAAsyncGetProtoByName = _OS2WSAAsyncGetProtoByName@20 @105 43 WSAAsyncGetServByPort = _OS2WSAAsyncGetServByPort@24 @106 44 WSAAsyncGetServByName = _OS2WSAAsyncGetServByName@24 @107 45 WSACancelAsyncRequest = _OS2WSACancelAsyncRequest@4 @108 46 WSASetBlockingHook = _OS2WSASetBlockingHook@4 @109 47 WSAUnhookBlockingHook = _OS2WSAUnhookBlockingHook@0 @110 48 WSAGetLastError = _OS2WSAGetLastError@0 @111 49 WSASetLastError = _OS2WSASetLastError@4 @112 50 WSACancelBlockingCall = _OS2WSACancelBlockingCall@0 @113 51 WSAIsBlocking = _OS2WSAIsBlocking@0 @114 52 WSAStartup = _OS2WSAStartup@8 @115 53 WSACleanup = _OS2WSACleanup@0 @116 54 __WSAFDIsSet = _OS2__WSAFDIsSet@8 @151 54 WSAAsyncSelect = _OS2WSAAsyncSelect@16 @101 55 WSAAsyncGetHostByAddr = _OS2WSAAsyncGetHostByAddr@28 @102 56 WSAAsyncGetHostByName = _OS2WSAAsyncGetHostByName@20 @103 57 WSAAsyncGetProtoByNumber =_OS2WSAAsyncGetProtoByNumber@20 @104 58 WSAAsyncGetProtoByName = _OS2WSAAsyncGetProtoByName@20 @105 59 WSAAsyncGetServByPort = _OS2WSAAsyncGetServByPort@24 @106 60 WSAAsyncGetServByName = _OS2WSAAsyncGetServByName@24 @107 61 WSACancelAsyncRequest = _OS2WSACancelAsyncRequest@4 @108 62 WSASetBlockingHook = _OS2WSASetBlockingHook@4 @109 63 WSAUnhookBlockingHook = _OS2WSAUnhookBlockingHook@0 @110 64 WSAGetLastError = _OS2WSAGetLastError@0 @111 65 WSASetLastError = _OS2WSASetLastError@4 @112 66 WSACancelBlockingCall = _OS2WSACancelBlockingCall@0 @113 67 WSAIsBlocking = _OS2WSAIsBlocking@0 @114 68 WSAStartup = _OS2WSAStartup@8 @115 69 WSACleanup = _OS2WSACleanup@0 @116 55 70 56 ; Arecv = _OS2Arecv 57 ; Asend = _OS2Asend 58 ; EnumProtocolsA = _OS2EnumProtocolsA 59 ; EnumProtocolsW = _OS2EnumProtocolsW 60 ; GetAddressByNameA = _OS2GetAddressByNameA 61 ; GetAddressByNameW = _OS2GetAddressByNameW 62 ; GetNameByTypeA = _OS2GetNameByTypeA 63 ; GetNameByTypeW = _OS2GetNameByTypeW 64 ; GetServiceA = _OS2GetServiceA 65 ; GetServiceW = _OS2GetServiceW 66 ; GetTypeByNameA = _OS2GetTypeByNameA 67 ; GetTypeByNameW = _OS2GetTypeByNameW 68 ; NPLoadNameSpaces = _OS2NPLoadNameSpaces 69 ; SetServiceA = _OS2SetServiceA 70 ; SetServiceW = _OS2SetServiceW 71 ; TransmitFile = _OS2TransmitFile 72 ; WsControl = _OS2WsControl @1000 73 ; closesockinfo = _OS2closesockinfo @1001 74 ; WSHEnumProtocols = _OS2WSHEnumProtocols @1004 75 ; inet_network = _OS2inet_network @1100 76 ; getnetbyname = _OS2getnetbyname @1101 77 ; rcmd = _OS2rcmd @1102 78 ; rexec = _OS2rexec @1103 79 ; rresvport = _OS2rresvport @1104 80 ; sethostname = _OS2sethostname @1105 81 ; dn_expand = _OS2dn_expand @1106 71 __WSAFDIsSet = _OS2__WSAFDIsSet@8 @151 82 72 83 WSARecvEx = _OS2WSARecvEx@16 @1107 84 s_perror = _OS2s_perror@8 @1108 73 ; WsControl = _OS2WsControl @1000 74 ; closesockinfo = _OS2closesockinfo @1001 75 ; WSHEnumProtocols = _OS2WSHEnumProtocols @1004 76 ; inet_network = _OS2inet_network @1100 77 ; getnetbyname = _OS2getnetbyname @1101 78 ; rcmd = _OS2rcmd @1102 79 ; rexec = _OS2rexec @1103 80 ; rresvport = _OS2rresvport @1104 81 ; sethostname = _OS2sethostname @1105 82 ; dn_expand = _OS2dn_expand @1106 83 WSARecvEx = _OS2WSARecvEx@16 @1107 84 s_perror = _OS2s_perror@8 @1108 85 86 _OS2gethostname@8 @2000 -
trunk/src/wsock32/wsock32.h
r4 r46 1 /* $Id: wsock32.h,v 1.1 1999-05-24 20:20:10 ktk Exp $ */2 3 1 /* WSOCK32.H--definitions & conversions for Odin's wsock32.dll. 4 2 * Unused/unneeded Microsoft declarations removed. … … 17 15 18 16 #define FAR 19 #define PASCAL __stdcall20 #define WINAPI __stdcall21 #define WIN32API __stdcall22 17 23 18 #ifndef IN … … 669 664 #endif 670 665 671 SOCKET PASCALFAR OS2accept (SOCKET s, struct sockaddr *addr,666 SOCKET WIN32API FAR OS2accept (SOCKET s, struct sockaddr *addr, 672 667 int *addrlen); 673 668 674 int PASCALFAR OS2bind (SOCKET s, const struct sockaddr FAR *addr, int namelen);675 676 int PASCALFAR OS2closesocket (SOCKET s);677 678 int PASCALFAR OS2connect (SOCKET s, const struct sockaddr FAR *name, int namelen);679 680 int PASCALFAR OS2ioctlsocket (SOCKET s, long cmd, u_long FAR *argp);681 682 int PASCALFAR OS2getpeername (SOCKET s, struct sockaddr FAR *name,669 int WIN32API FAR OS2bind (SOCKET s, const struct sockaddr FAR *addr, int namelen); 670 671 int WIN32API FAR OS2closesocket (SOCKET s); 672 673 int WIN32API FAR OS2connect (SOCKET s, const struct sockaddr FAR *name, int namelen); 674 675 int WIN32API FAR OS2ioctlsocket (SOCKET s, long cmd, u_long FAR *argp); 676 677 int WIN32API FAR OS2getpeername (SOCKET s, struct sockaddr FAR *name, 683 678 int FAR * namelen); 684 679 685 int PASCALFAR OS2getsockname (SOCKET s, struct sockaddr FAR *name,680 int WIN32API FAR OS2getsockname (SOCKET s, struct sockaddr FAR *name, 686 681 int FAR * namelen); 687 682 688 int PASCALFAR OS2getsockopt (SOCKET s, int level, int optname,683 int WIN32API FAR OS2getsockopt (SOCKET s, int level, int optname, 689 684 char FAR * optval, int FAR *optlen); 690 685 691 u_long PASCALFAR OS2htonl (u_long hostlong);692 693 u_short PASCALFAR OS2htons (u_short hostshort);694 695 unsigned long PASCALFAR OS2inet_addr (const char FAR * cp);696 697 char FAR * PASCALFAR OS2inet_ntoa (struct in_addr in);698 699 int PASCALFAR OS2listen (SOCKET s, int backlog);700 701 u_long PASCALFAR OS2ntohl (u_long netlong);702 703 u_short PASCALFAR OS2ntohs (u_short netshort);704 705 int PASCALFAR OS2recv (SOCKET s, char FAR * buf, int len, int flags);706 707 int PASCALFAR OS2recvfrom (SOCKET s, char FAR * buf, int len, int flags,686 u_long WIN32API FAR OS2htonl (u_long hostlong); 687 688 u_short WIN32API FAR OS2htons (u_short hostshort); 689 690 unsigned long WIN32API FAR OS2inet_addr (const char FAR * cp); 691 692 char FAR * WIN32API FAR OS2inet_ntoa (struct in_addr in); 693 694 int WIN32API FAR OS2listen (SOCKET s, int backlog); 695 696 u_long WIN32API FAR OS2ntohl (u_long netlong); 697 698 u_short WIN32API FAR OS2ntohs (u_short netshort); 699 700 int WIN32API FAR OS2recv (SOCKET s, char FAR * buf, int len, int flags); 701 702 int WIN32API FAR OS2recvfrom (SOCKET s, char FAR * buf, int len, int flags, 708 703 struct sockaddr FAR *from, int FAR * fromlen); 709 704 710 int PASCALFAR OS2select (int nfds, Wfd_set FAR *readfds, Wfd_set FAR *writefds,705 int WIN32API FAR OS2select (int nfds, Wfd_set FAR *readfds, Wfd_set FAR *writefds, 711 706 Wfd_set FAR *exceptfds, const struct Wtimeval FAR *timeout); 712 707 713 int PASCALFAR OS2send (SOCKET s, const char FAR * buf, int len, int flags);714 715 int PASCALFAR OS2sendto (SOCKET s, const char FAR * buf, int len, int flags,708 int WIN32API FAR OS2send (SOCKET s, const char FAR * buf, int len, int flags); 709 710 int WIN32API FAR OS2sendto (SOCKET s, const char FAR * buf, int len, int flags, 716 711 const struct sockaddr FAR *to, int tolen); 717 712 718 int PASCALFAR OS2setsockopt (SOCKET s, int level, int optname,713 int WIN32API FAR OS2setsockopt (SOCKET s, int level, int optname, 719 714 const char FAR * optval, int optlen); 720 715 721 int PASCALFAR OS2shutdown (SOCKET s, int how);722 723 SOCKET PASCALFAR OS2socket (int af, int type, int protocol);716 int WIN32API FAR OS2shutdown (SOCKET s, int how); 717 718 SOCKET WIN32API FAR OS2socket (int af, int type, int protocol); 724 719 725 720 /* Database function prototypes */ 726 721 727 struct Whostent FAR * PASCALFAR OS2gethostbyaddr(const char FAR * addr,722 struct Whostent FAR * WIN32API FAR OS2gethostbyaddr(const char FAR * addr, 728 723 int len, int type); 729 724 730 struct Whostent FAR * PASCALFAR OS2gethostbyname(const char FAR * name);731 732 int PASCALFAR OS2gethostname (char FAR * name, int namelen);733 734 struct Wservent FAR * PASCALFAR OS2getservbyport(int port, const char FAR * proto);735 736 struct Wservent FAR * PASCALFAR OS2getservbyname(const char FAR * name,725 struct Whostent FAR * WIN32API FAR OS2gethostbyname(const char FAR * name); 726 727 int WIN32API FAR OS2gethostname (char FAR * name, int namelen); 728 729 struct Wservent FAR * WIN32API FAR OS2getservbyport(int port, const char FAR * proto); 730 731 struct Wservent FAR * WIN32API FAR OS2getservbyname(const char FAR * name, 737 732 const char FAR * proto); 738 733 739 struct Wprotoent FAR * PASCALFAR OS2getprotobynumber(int proto);740 741 struct Wprotoent FAR * PASCALFAR OS2getprotobyname(const char FAR * name);734 struct Wprotoent FAR * WIN32API FAR OS2getprotobynumber(int proto); 735 736 struct Wprotoent FAR * WIN32API FAR OS2getprotobyname(const char FAR * name); 742 737 743 738 /* Microsoft Windows Extension function prototypes */ 744 739 745 int PASCALFAR OS2WSAStartup(WORD wVersionRequired, LPWSADATA lpWSAData);746 747 int PASCALFAR OS2WSACleanup(void);748 749 void PASCALFAR OS2WSASetLastError(int iError);750 751 int PASCALFAR OS2WSAGetLastError(void);752 753 BOOL PASCALFAR OS2WSAIsBlocking(void);754 755 int PASCALFAR OS2WSAUnhookBlockingHook(void);756 757 FARPROC PASCALFAR OS2WSASetBlockingHook(FARPROC lpBlockFunc);758 759 int PASCALFAR OS2WSACancelBlockingCall(void);760 761 HANDLE PASCALFAR OS2WSAAsyncGetServByName(HWND hWnd, u_int wMsg,740 int WIN32API FAR OS2WSAStartup(WORD wVersionRequired, LPWSADATA lpWSAData); 741 742 int WIN32API FAR OS2WSACleanup(void); 743 744 void WIN32API FAR OS2WSASetLastError(int iError); 745 746 int WIN32API FAR OS2WSAGetLastError(void); 747 748 BOOL WIN32API FAR OS2WSAIsBlocking(void); 749 750 int WIN32API FAR OS2WSAUnhookBlockingHook(void); 751 752 FARPROC WIN32API FAR OS2WSASetBlockingHook(FARPROC lpBlockFunc); 753 754 int WIN32API FAR OS2WSACancelBlockingCall(void); 755 756 HANDLE WIN32API FAR OS2WSAAsyncGetServByName(HWND hWnd, u_int wMsg, 762 757 const char FAR * name, 763 758 const char FAR * proto, 764 759 char FAR * buf, int buflen); 765 760 766 HANDLE PASCALFAR OS2WSAAsyncGetServByPort(HWND hWnd, u_int wMsg, int port,761 HANDLE WIN32API FAR OS2WSAAsyncGetServByPort(HWND hWnd, u_int wMsg, int port, 767 762 const char FAR * proto, char FAR * buf, 768 763 int buflen); 769 764 770 HANDLE PASCALFAR OS2WSAAsyncGetProtoByName(HWND hWnd, u_int wMsg,765 HANDLE WIN32API FAR OS2WSAAsyncGetProtoByName(HWND hWnd, u_int wMsg, 771 766 const char FAR * name, char FAR * buf, 772 767 int buflen); 773 768 774 HANDLE PASCALFAR OS2WSAAsyncGetProtoByNumber(HWND hWnd, u_int wMsg,769 HANDLE WIN32API FAR OS2WSAAsyncGetProtoByNumber(HWND hWnd, u_int wMsg, 775 770 int number, char FAR * buf, 776 771 int buflen); 777 772 778 HANDLE PASCALFAR OS2WSAAsyncGetHostByName(HWND hWnd, u_int wMsg,773 HANDLE WIN32API FAR OS2WSAAsyncGetHostByName(HWND hWnd, u_int wMsg, 779 774 const char FAR * name, char FAR * buf, 780 775 int buflen); 781 776 782 HANDLE PASCALFAR OS2WSAAsyncGetHostByAddr(HWND hWnd, u_int wMsg,777 HANDLE WIN32API FAR OS2WSAAsyncGetHostByAddr(HWND hWnd, u_int wMsg, 783 778 const char FAR * addr, int len, int type, 784 779 char FAR * buf, int buflen); 785 780 786 int PASCALFAR OS2WSACancelAsyncRequest(HANDLE hAsyncTaskHandle);787 788 int PASCALFAR OS2WSAAsyncSelect(SOCKET s, HWND hWnd, u_int wMsg,781 int WIN32API FAR OS2WSACancelAsyncRequest(HANDLE hAsyncTaskHandle); 782 783 int WIN32API FAR OS2WSAAsyncSelect(SOCKET s, HWND hWnd, u_int wMsg, 789 784 long lEvent); 790 785 791 int PASCALFAR OS2WSARecvEx (SOCKET s, char FAR * buf, int len, int FAR *flags);786 int WIN32API FAR OS2WSARecvEx (SOCKET s, char FAR * buf, int len, int FAR *flags); 792 787 793 788 typedef struct _TRANSMIT_FILE_BUFFERS { … … 809 804 810 805 BOOL 811 PASCALFAR806 WIN32API FAR 812 807 OS2TransmitFile ( 813 808 IN SOCKET hSocket,
Note:
See TracChangeset
for help on using the changeset viewer.