Changeset 6995 for trunk/src/ws2_32/socket.cpp
- Timestamp:
- Oct 10, 2001, 9:08:08 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ws2_32/socket.cpp
r6201 r6995 1 /* $Id: socket.cpp,v 1. 9 2001-07-07 14:29:22 achimhaExp $ */1 /* $Id: socket.cpp,v 1.10 2001-10-10 19:08:08 phaller Exp $ */ 2 2 /* 3 3 * based on Windows Sockets 1.1 specs … … 17 17 */ 18 18 19 20 /***************************************************************************** 21 * Includes * 22 *****************************************************************************/ 23 19 24 #include <odin.h> 20 25 #include <winsock2.h> 21 26 #include <debugtools.h> 27 #include <odinwrap.h> 28 29 30 ODINDEBUGCHANNEL(WS2_32-SOCKET) 31 22 32 23 33 /*********************************************************************** … … 25 35 * 26 36 */ 27 WSAEVENT WINAPI WSACreateEvent(void)37 ODINFUNCTION0(WSAEVENT, WSACreateEvent) 28 38 { 29 39 /* Create a manual-reset event, with initial state: unsignealed */ 30 TRACE("WSACreateEvent");31 40 32 41 return CreateEventA(NULL, TRUE, FALSE, NULL); 33 42 } 34 43 35 BOOL WINAPI WSASetEvent(WSAEVENT hEvent) 44 ODINFUNCTION1(BOOL, WSASetEvent, 45 WSAEVENT, hEvent) 36 46 { 37 TRACE("WSASetEvent event=0x%x\n", hEvent);38 47 return SetEvent(hEvent); 39 48 } … … 43 52 * 44 53 */ 45 BOOL WINAPI WSACloseEvent(WSAEVENT hEvent) 54 ODINFUNCTION1(BOOL, WSACloseEvent, 55 WSAEVENT, hEvent) 46 56 { 47 TRACE ("WSACloseEvent event=0x%x\n", hEvent);48 49 57 return CloseHandle(hEvent); 50 58 } … … 54 62 * 55 63 */ 56 SOCKET WINAPI WSASocketA(int af, int type, int protocol, 57 LPWSAPROTOCOL_INFOA lpProtocolInfo, 58 GROUP g, DWORD dwFlags) 64 ODINFUNCTION6(SOCKET, WSASocketA, 65 int, af, 66 int, type, 67 int, protocol, 68 LPWSAPROTOCOL_INFOA, lpProtocolInfo, 69 GROUP, g, 70 DWORD, dwFlags) 59 71 { 72 dprintf(("WSASocketA incorrectly implemented")); 60 73 /* 61 74 FIXME: The "advanced" parameters of WSASocketA (lpProtocolInfo, … … 73 86 * 74 87 */ 75 SOCKET WINAPI WSASocketW(int af, int type, int protocol, 76 LPWSAPROTOCOL_INFOW lpProtocolInfo, 77 GROUP g, DWORD dwFlags) 88 ODINFUNCTION6(SOCKET, WSASocketW, 89 int, af, 90 int, type, 91 int, protocol, 92 LPWSAPROTOCOL_INFOW, lpProtocolInfo, 93 GROUP, g, 94 DWORD, dwFlags) 78 95 { 96 dprintf(("WSASocketW incorrectly implemented")); 79 97 /* 80 98 FIXME: The "advanced" parameters of WSASocketA (lpProtocolInfo,
Note:
See TracChangeset
for help on using the changeset viewer.