3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS WinSock DLL
6 * PURPOSE: Stub functions
7 * PROGRAMMERS: Ge van Geldorp (ge@gse.nl)
16 AcceptEx(SOCKET ListenSocket,
19 DWORD ReceiveDataLength,
20 DWORD LocalAddressLength,
21 DWORD RemoteAddressLength,
22 LPDWORD BytesReceived,
23 LPOVERLAPPED Overlapped)
25 OutputDebugString(L"w32sock AcceptEx stub called\n");
32 EnumProtocolsA(LPINT ProtocolCount,
33 LPVOID ProtocolBuffer,
36 OutputDebugString(L"w32sock EnumProtocolsA stub called\n");
43 EnumProtocolsW(LPINT ProtocolCount,
44 LPVOID ProtocolBuffer,
47 OutputDebugString(L"w32sock EnumProtocolsW stub called\n");
54 GetAcceptExSockaddrs(PVOID OutputBuffer,
55 DWORD ReceiveDataLength,
56 DWORD LocalAddressLength,
57 DWORD RemoteAddressLength,
58 LPSOCKADDR* LocalSockaddr,
59 LPINT LocalSockaddrLength,
60 LPSOCKADDR* RemoteSockaddr,
61 LPINT RemoteSockaddrLength)
63 OutputDebugString(L"w32sock GetAcceptExSockaddrs stub called\n");
68 GetAddressByNameA(DWORD NameSpace,
73 LPVOID /* really LPSERVICE_ASYNC_INFO */ ServiceAsyncInfo,
77 LPDWORD AliasBufferLength)
79 OutputDebugString(L"w32sock GetAddressByNameA stub called\n");
86 GetAddressByNameW(DWORD NameSpace,
91 LPVOID /* really LPSERVICE_ASYNC_INFO */ ServiceAsyncInfo,
95 LPDWORD AliasBufferLength)
97 OutputDebugString(L"w32sock GetAddressByNameW stub called\n");
104 GetNameByTypeA(LPGUID ServiceType,
108 OutputDebugString(L"w32sock GetNameByTypeA stub called\n");
115 GetNameByTypeW(LPGUID ServiceType,
119 OutputDebugString(L"w32sock GetNameByTypeW stub called\n");
126 GetServiceA(DWORD NameSpace,
132 LPVOID /* Really LPSERVICE_ASYNC_INFO */ ServiceAsyncInfo)
134 OutputDebugString(L"w32sock GetServiceA stub called\n");
141 GetServiceW(DWORD NameSpace,
147 LPVOID /* Really LPSERVICE_ASYNC_INFO */ ServiceAsyncInfo)
149 OutputDebugString(L"w32sock GetServiceW stub called\n");
156 GetTypeByNameA(LPSTR ServiceName,
159 OutputDebugString(L"w32sock GetTypeByNameA stub called\n");
166 GetTypeByNameW(LPWSTR ServiceName,
169 OutputDebugString(L"w32sock GetTypeByNameW stub called\n");
176 SetServiceA(DWORD NameSpace,
179 LPVOID /* Really LPSERVICE_INFO */ ServiceInfo,
180 LPVOID /* Really LPSERVICE_ASYNC_INFOA */ ServiceAsyncInfo,
181 LPDWORD dwStatusFlags)
183 OutputDebugString(L"w32sock SetServiceA stub called\n");
190 SetServiceW(DWORD NameSpace,
193 LPVOID /* Really LPSERVICE_INFO */ ServiceInfo,
194 LPVOID /* Really LPSERVICE_ASYNC_INFOW */ ServiceAsyncInfo,
195 LPDWORD dwStatusFlags)
197 OutputDebugString(L"w32sock SetServiceW stub called\n");
204 TransmitFile(SOCKET Socket,
206 DWORD NumberOfBytesToWrite,
207 DWORD NumberOfBytesPerSend,
208 LPOVERLAPPED Overlapped,
209 LPVOID /* really LPTRANSMIT_FILE_BUFFERS */ TransmitBuffers,
212 OutputDebugString(L"w32sock TransmitFile stub called\n");
219 WSAAsyncGetHostByAddr(HWND Wnd,
227 OutputDebugString(L"w32sock WSAAsyncGetHostByAddr stub called\n");
234 WSAAsyncGetHostByName(HWND Wnd,
240 OutputDebugString(L"w32sock WSAAsyncGetHostByName stub called\n");
247 WSAAsyncGetProtoByName(HWND Wnd,
253 OutputDebugString(L"w32sock WSAAsyncGetProtoByName stub called\n");
260 WSAAsyncGetProtoByNumber(HWND Wnd,
266 OutputDebugString(L"w32sock WSAAsyncGetProtoByNumber stub called\n");
273 WSAAsyncGetServByName(HWND Wnd,
280 OutputDebugString(L"w32sock WSAAsyncGetServByName stub called\n");
287 WSAAsyncGetServByPort(HWND Wnd,
294 OutputDebugString(L"w32sock WSAAsyncGetServByPort stub called\n");
301 WSAAsyncSelect(SOCKET Sock,
306 OutputDebugString(L"w32sock WSAAsyncSelect stub called\n");
313 WSACancelAsyncRequest(HANDLE AsyncTaskHandle)
315 OutputDebugString(L"w32sock WSACancelAsyncRequest stub called\n");
322 WSACancelBlockingCall()
324 OutputDebugString(L"w32sock WSACancelBlockingCall stub called\n");
333 OutputDebugString(L"w32sock WSACleanup stub called\n");
340 WSAGetLastError(void)
342 OutputDebugString(L"w32sock WSAGetLastError stub called\n");
344 return WSANOTINITIALISED;
351 OutputDebugString(L"w32sock WSAIsBlocking stub called\n");
358 WSARecvEx(SOCKET Sock,
363 OutputDebugString(L"w32sock WSARecvEx stub called\n");
370 WSASetBlockingHook(FARPROC BlockFunc)
372 OutputDebugString(L"w32sock WSASetBlockingHook stub called\n");
378 STDCALL WSASetLastError(int Error)
380 OutputDebugString(L"w32sock WSASetLastError stub called\n");
385 WSAStartup(WORD VersionRequested,
388 OutputDebugString(L"w32sock WSAStartup stub called\n");
390 return WSASYSNOTREADY;
395 WSAUnhookBlockingHook(void)
397 OutputDebugString(L"w32sock WSAUnhookBlockingHook stub called\n");
404 WSApSetPostRoutine(LPVOID /* really LPWPUPOSTMESSAGE */ PostRoutine)
406 OutputDebugString(L"w32sock WSApSetPostRoutine stub called\n");
413 __WSAFDIsSet(SOCKET Sock,
416 OutputDebugString(L"w32sock __WSAFDIsSet stub called\n");
424 struct sockaddr *Addr,
427 OutputDebugString(L"w32sock accept stub called\n");
429 return INVALID_SOCKET;
435 CONST LPSOCKADDR Name,
438 OutputDebugString(L"w32sock bind stub called\n");
445 closesocket(SOCKET Sock)
447 OutputDebugString(L"w32sock closesocket stub called\n");
455 CONST LPSOCKADDR Name,
458 OutputDebugString(L"w32sock connect stub called\n");
465 dn_expand(unsigned char *MessagePtr,
466 unsigned char *EndofMesOrig,
467 unsigned char *CompDomNam,
468 unsigned char *ExpandDomNam,
471 OutputDebugString(L"w32sock dn_expand stub called\n");
478 gethostbyaddr(CONST CHAR *Addr,
482 OutputDebugString(L"w32sock gethostbyaddr stub called\n");
489 gethostbyname(const char *Name)
491 OutputDebugString(L"w32sock gethostbyname stub called\n");
498 gethostname(char *Name,
501 OutputDebugString(L"w32sock gethostname stub called\n");
508 getnetbyname(char *Name)
510 OutputDebugString(L"w32sock getnetbyname stub called\n");
517 getpeername(SOCKET Sock,
518 struct sockaddr *Name,
521 OutputDebugString(L"w32sock getpeername stub called\n");
528 getprotobyname(CONST CHAR *Name)
530 OutputDebugString(L"w32sock getprotobyname stub called\n");
537 getprotobynumber(INT Number)
539 OutputDebugString(L"w32sock getprotobynumber stub called\n");
546 getservbyname(const char *Name,
549 OutputDebugString(L"w32sock getservbyname stub called\n");
556 getservbyport(int Port,
559 OutputDebugString(L"w32sock getservbyport stub called\n");
566 getsockname(SOCKET Sock,
567 struct sockaddr *Name,
570 OutputDebugString(L"w32sock getsockname stub called\n");
577 getsockopt(SOCKET Sock,
583 OutputDebugString(L"w32sock getsockopt stub called\n");
590 htonl(ULONG HostLong)
592 return (((HostLong << 24) & 0xff000000) |
593 ((HostLong << 8) & 0x00ff0000) |
594 ((HostLong >> 8) & 0x0000ff00) |
595 ((HostLong >> 24) & 0x000000ff));
600 htons(USHORT HostShort)
602 return (((HostShort << 8) & 0xff00) |
603 ((HostShort >> 8) & 0x00ff));
608 inet_addr(CONST CHAR *cp)
610 OutputDebugString(L"w32sock inet_addr stub called\n");
617 inet_network(const char *cp)
619 OutputDebugString(L"w32sock inet_network stub called\n");
626 inet_ntoa(struct in_addr in)
628 OutputDebugString(L"w32sock inet_ntoa stub called\n");
635 ioctlsocket(SOCKET Sock,
639 OutputDebugString(L"w32sock ioctlsocket stub called\n");
649 OutputDebugString(L"w32sock listen stub called\n");
659 return (((NetLong << 24) & 0xff000000) |
660 ((NetLong << 8) & 0x00ff0000) |
661 ((NetLong >> 8) & 0x0000ff00) |
662 ((NetLong >> 24) & 0x000000ff));
667 ntohs(USHORT NetShort)
669 return (((NetShort << 8) & 0xff00) |
670 ((NetShort >> 8) & 0x00ff));
682 OutputDebugString(L"w32sock rcmd stub called\n");
684 return INVALID_SOCKET;
694 OutputDebugString(L"w32sock recv stub called\n");
701 recvfrom(SOCKET Sock,
705 struct sockaddr *From,
708 OutputDebugString(L"w32sock recvfrom stub called\n");
722 OutputDebugString(L"w32sock rexec stub called\n");
724 return INVALID_SOCKET;
732 OutputDebugString(L"w32sock rresvport stub called\n");
734 return INVALID_SOCKET;
739 s_perror(const char *str)
741 OutputDebugString(L"w32sock s_perror stub called\n");
750 CONST LPTIMEVAL TimeOut)
752 OutputDebugString(L"w32sock select stub called\n");
764 OutputDebugString(L"w32sock send stub called\n");
778 OutputDebugString(L"w32sock sendto stub called\n");
785 sethostname(char *Name, int NameLen)
787 OutputDebugString(L"w32sock sethostname stub called\n");
794 setsockopt(SOCKET Sock,
800 OutputDebugString(L"w32sock setsockopt stub called\n");
807 shutdown(SOCKET Sock,
810 OutputDebugString(L"w32sock shutdown stub called\n");
821 OutputDebugString(L"w32sock socket stub called\n");
823 return INVALID_SOCKET;
828 DllMain(HINSTANCE InstDLL,