-/* $Id: stubs.c,v 1.1 2003/04/03 22:44:19 gvg Exp $
+/* $Id: stubs.c,v 1.2 2003/07/10 21:41:56 chorns Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS WinSock DLL
#include <windows.h>
#include <winsock2.h>
+/*
+ * @unimplemented
+ */
BOOL
STDCALL
AcceptEx(SOCKET ListenSocket,
return FALSE;
}
+
+/*
+ * @unimplemented
+ */
INT
STDCALL
EnumProtocolsA(LPINT ProtocolCount,
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
INT
STDCALL
EnumProtocolsW(LPINT ProtocolCount,
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
VOID
STDCALL
GetAcceptExSockaddrs(PVOID OutputBuffer,
OutputDebugString(L"w32sock GetAcceptExSockaddrs stub called\n");
}
+
+/*
+ * @unimplemented
+ */
INT
STDCALL
GetAddressByNameA(DWORD NameSpace,
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
INT
STDCALL
GetAddressByNameW(DWORD NameSpace,
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
INT
STDCALL
GetNameByTypeA(LPGUID ServiceType,
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
INT
STDCALL
GetNameByTypeW(LPGUID ServiceType,
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
INT
STDCALL
GetServiceA(DWORD NameSpace,
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
INT
STDCALL
GetServiceW(DWORD NameSpace,
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
INT
STDCALL
GetTypeByNameA(LPSTR ServiceName,
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
INT
STDCALL
GetTypeByNameW(LPWSTR ServiceName,
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
INT
STDCALL
SetServiceA(DWORD NameSpace,
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
INT
STDCALL
SetServiceW(DWORD NameSpace,
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
BOOL
STDCALL
TransmitFile(SOCKET Socket,
return FALSE;
}
+
+/*
+ * @unimplemented
+ */
HANDLE
STDCALL
WSAAsyncGetHostByAddr(HWND Wnd,
return NULL;
}
+
+/*
+ * @unimplemented
+ */
HANDLE
STDCALL
WSAAsyncGetHostByName(HWND Wnd,
return NULL;
}
+
+/*
+ * @unimplemented
+ */
HANDLE
STDCALL
WSAAsyncGetProtoByName(HWND Wnd,
return NULL;
}
+
+/*
+ * @unimplemented
+ */
HANDLE
STDCALL
WSAAsyncGetProtoByNumber(HWND Wnd,
return NULL;
}
+
+/*
+ * @unimplemented
+ */
HANDLE
STDCALL
WSAAsyncGetServByName(HWND Wnd,
return NULL;
}
+
+/*
+ * @unimplemented
+ */
HANDLE
STDCALL
WSAAsyncGetServByPort(HWND Wnd,
return NULL;
}
+
+/*
+ * @unimplemented
+ */
INT
STDCALL
WSAAsyncSelect(SOCKET Sock,
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
int
STDCALL
WSACancelAsyncRequest(HANDLE AsyncTaskHandle)
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
int
STDCALL
WSACancelBlockingCall()
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
int
STDCALL
WSACleanup()
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
int
STDCALL
WSAGetLastError(void)
return WSANOTINITIALISED;
}
+
+/*
+ * @unimplemented
+ */
BOOL
STDCALL
WSAIsBlocking(VOID)
return FALSE;
}
+
+/*
+ * @unimplemented
+ */
int
STDCALL
WSARecvEx(SOCKET Sock,
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
FARPROC
STDCALL
WSASetBlockingHook(FARPROC BlockFunc)
return NULL;
}
+
+/*
+ * @unimplemented
+ */
void
STDCALL WSASetLastError(int Error)
{
OutputDebugString(L"w32sock WSASetLastError stub called\n");
}
+
+/*
+ * @unimplemented
+ */
int
STDCALL
WSAStartup(WORD VersionRequested,
return WSASYSNOTREADY;
}
+
+/*
+ * @unimplemented
+ */
int
STDCALL
WSAUnhookBlockingHook(void)
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
int
STDCALL
WSApSetPostRoutine(LPVOID /* really LPWPUPOSTMESSAGE */ PostRoutine)
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
int
STDCALL
__WSAFDIsSet(SOCKET Sock,
return 0;
}
+
+/*
+ * @unimplemented
+ */
SOCKET
STDCALL
accept(SOCKET Sock,
return INVALID_SOCKET;
}
+
+/*
+ * @unimplemented
+ */
INT
STDCALL
bind(SOCKET Sock,
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
int
STDCALL
closesocket(SOCKET Sock)
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
INT
STDCALL
connect(SOCKET Sock,
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
int
STDCALL
dn_expand(unsigned char *MessagePtr,
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
LPHOSTENT
STDCALL
gethostbyaddr(CONST CHAR *Addr,
return NULL;
}
+
+/*
+ * @unimplemented
+ */
struct hostent *
STDCALL
gethostbyname(const char *Name)
return NULL;
}
+
+/*
+ * @unimplemented
+ */
int
STDCALL
gethostname(char *Name,
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
struct netent *
STDCALL
getnetbyname(char *Name)
return NULL;
}
+
+/*
+ * @unimplemented
+ */
int
STDCALL
getpeername(SOCKET Sock,
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
LPPROTOENT
STDCALL
getprotobyname(CONST CHAR *Name)
return NULL;
}
+
+/*
+ * @unimplemented
+ */
LPPROTOENT
STDCALL
getprotobynumber(INT Number)
return NULL;
}
+
+/*
+ * @unimplemented
+ */
struct servent *
STDCALL
getservbyname(const char *Name,
return NULL;
}
+
+/*
+ * @unimplemented
+ */
struct servent *
STDCALL
getservbyport(int Port,
return NULL;
}
+
+/*
+ * @unimplemented
+ */
int
STDCALL
getsockname(SOCKET Sock,
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
int
STDCALL
getsockopt(SOCKET Sock,
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
ULONG
STDCALL
htonl(ULONG HostLong)
((HostLong >> 24) & 0x000000ff));
}
+
+/*
+ * @unimplemented
+ */
USHORT
STDCALL
htons(USHORT HostShort)
((HostShort >> 8) & 0x00ff));
}
+
+/*
+ * @unimplemented
+ */
ULONG
STDCALL
inet_addr(CONST CHAR *cp)
return INADDR_NONE;
}
+
+/*
+ * @unimplemented
+ */
unsigned long
STDCALL
inet_network(const char *cp)
return INADDR_NONE;
}
+
+/*
+ * @unimplemented
+ */
char *
STDCALL
inet_ntoa(struct in_addr in)
return NULL;
}
+
+/*
+ * @unimplemented
+ */
INT
STDCALL
ioctlsocket(SOCKET Sock,
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
int
STDCALL
listen(SOCKET Sock,
}
+/*
+ * @implemented
+ */
ULONG
STDCALL
ntohl(ULONG NetLong)
((NetLong >> 24) & 0x000000ff));
}
+
+/*
+ * @implemented
+ */
USHORT
STDCALL
ntohs(USHORT NetShort)
((NetShort >> 8) & 0x00ff));
}
+
+/*
+ * @unimplemented
+ */
SOCKET
STDCALL
rcmd(char **AHost,
return INVALID_SOCKET;
}
+
+/*
+ * @unimplemented
+ */
int
STDCALL
recv(SOCKET Sock,
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
int
STDCALL
recvfrom(SOCKET Sock,
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
SOCKET
STDCALL
rexec(char **AHost,
}
+/*
+ * @unimplemented
+ */
SOCKET
STDCALL
rresvport(int *port)
return INVALID_SOCKET;
}
+
+/*
+ * @unimplemented
+ */
void
STDCALL
s_perror(const char *str)
OutputDebugString(L"w32sock s_perror stub called\n");
}
+
+/*
+ * @unimplemented
+ */
INT
STDCALL
select(INT NumFds,
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
int
STDCALL
send(SOCKET Sock,
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
INT
STDCALL
sendto(SOCKET Sock,
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
int
STDCALL
sethostname(char *Name, int NameLen)
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
int
STDCALL
setsockopt(SOCKET Sock,
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
int
STDCALL
shutdown(SOCKET Sock,
return SOCKET_ERROR;
}
+
+/*
+ * @unimplemented
+ */
SOCKET
STDCALL
socket(int AF,
return INVALID_SOCKET;
}
+
+/*
+ * @unimplemented
+ */
BOOL
STDCALL
DllMain(HINSTANCE InstDLL,
{
return TRUE;
}
-