crypt32: Remove exception handling from internal decoding functions.
[wine/gsoc_dplay.git] / dlls / wsock32 / protocol.c
blob0b22cc1999cff7c25bb45e10ebfc4d3086085953
1 /*
2 * WSOCK32 specific functions
4 * Copyright (C) 2001 Stefan Leichter
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #define USE_WS_PREFIX
23 #include "config.h"
25 #include <stdarg.h>
26 #include <stdio.h>
27 #include <string.h>
29 #ifdef HAVE_ARPA_INET_H
30 #include <arpa/inet.h>
31 #endif
32 #ifdef HAVE_NETDB_H
33 #include <netdb.h>
34 #endif
36 #include "windef.h"
37 #include "winbase.h"
38 #include "winsock2.h"
40 #include "wine/unicode.h"
41 #include "wine/debug.h"
43 WINE_DEFAULT_DEBUG_CHANNEL(winsock);
45 /*****************************************************************************
46 * inet_network [WSOCK32.1100]
48 UINT WINAPI WSOCK32_inet_network(const char *cp)
50 #ifdef HAVE_INET_NETWORK
51 return inet_network(cp);
52 #else
53 return 0;
54 #endif
57 /*****************************************************************************
58 * getnetbyname [WSOCK32.1101]
60 struct netent * WINAPI WSOCK32_getnetbyname(const char *name)
62 #ifdef HAVE_GETNETBYNAME
63 return getnetbyname(name);
64 #else
65 return NULL;
66 #endif