5 * Date: October 14, 2002
6 * Description: Convert Winsock errors to Unix errors
8 * Copyright (C) 2002-2003, Herman Bloggs <hermanator12002@yahoo.com>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
25 #ifndef PURPLE_WIN32_WPURPLEERROR_H
26 #define PURPLE_WIN32_WPURPLEERROR_H
28 /* Here we define unix socket errors as windows socket errors */
31 #define ENETDOWN WSAENETDOWN
33 #define EAFNOSUPPORT WSAEAFNOSUPPORT
35 #define EINPROGRESS WSAEINPROGRESS
37 #define ENOBUFS WSAENOBUFS
38 #undef EPROTONOSUPPORT
39 #define EPROTONOSUPPORT WSAEPROTONOSUPPORT
41 #define EPROTOTYPE WSAEPROTOTYPE
42 #undef ESOCKTNOSUPPORT
43 #define ESOCKTNOSUPPORT WSAESOCKTNOSUPPORT
46 #define EADDRINUSE WSAEADDRINUSE
48 #define EINPROGRESS WSAEINPROGRESS
50 #define EALREADY WSAEALREADY
52 #define EADDRNOTAVAIL WSAEADDRNOTAVAIL
54 #define ECONNREFUSED WSAECONNREFUSED
56 #define EISCONN WSAEISCONN
58 #define ENETUNREACH WSAENETUNREACH
60 #define ENOTSOCK WSAENOTSOCK
62 #define ETIMEDOUT WSAETIMEDOUT
64 #define EWOULDBLOCK WSAEWOULDBLOCK
67 #define ENOTCONN WSAENOTCONN
69 #define ENETRESET WSAENETRESET
71 #define EOPNOTSUPP WSAEOPNOTSUPP
73 #define ESHUTDOWN WSAESHUTDOWN
75 #define EMSGSIZE WSAEMSGSIZE
77 #define ECONNABORTED WSAECONNABORTED
79 #define ECONNRESET WSAECONNRESET
81 #define EHOSTUNREACH WSAEHOSTUNREACH
83 #endif /* PURPLE_WIN32_WPURPLEERROR_H */