wine/dlls/wsock32/protocol.c

65 lines
1.6 KiB
C
Raw Normal View History

2001-01-12 23:15:54 +00:00
/*
* WSOCK32 specific functions
*
* Copyright (C) 2001 Stefan Leichter
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
2001-01-12 23:15:54 +00:00
*/
#define USE_WS_PREFIX
2001-01-12 23:15:54 +00:00
#include "config.h"
#include <stdarg.h>
2001-01-12 23:15:54 +00:00
#include <stdio.h>
#include <string.h>
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#include "windef.h"
2001-01-12 23:15:54 +00:00
#include "winbase.h"
2001-08-28 18:39:03 +00:00
#include "winsock2.h"
2001-01-12 23:15:54 +00:00
#include "wine/unicode.h"
2001-01-12 23:15:54 +00:00
/*****************************************************************************
* inet_network [WSOCK32.1100]
*/
2001-07-11 18:56:41 +00:00
UINT WINAPI WSOCK32_inet_network(const char *cp)
{
#ifdef HAVE_INET_NETWORK
return inet_network(cp);
#else
return 0;
#endif
}
/*****************************************************************************
* getnetbyname [WSOCK32.1101]
*/
2001-07-11 18:56:41 +00:00
struct netent * WINAPI WSOCK32_getnetbyname(const char *name)
{
#ifdef HAVE_GETNETBYNAME
return getnetbyname(name);
#else
return NULL;
#endif
}