21 @class OFArray OF_GENERIC(ObjectType);
25 #define OF_BACKTRACE_SIZE 32
27 #if defined(_WIN32) && defined(OF_HAVE_SOCKETS)
29 # define EADDRINUSE WSAEADDRINUSE
31 # ifndef EADDRNOTAVAIL
32 # define EADDRNOTAVAIL WSAEADDRNOTAVAIL
35 # define EAFNOSUPPORT WSAEAFNOSUPPORT
38 # define EALREADY WSAEALREADY
41 # define ECONNABORTED WSAECONNABORTED
44 # define ECONNREFUSED WSAECONNREFUSED
47 # define ECONNRESET WSAECONNRESET
50 # define EDESTADDRREQ WSAEDESTADDRREQ
53 # define EDQUOT WSAEDQUOT
56 # define EHOSTDOWN WSAEHOSTDOWN
59 # define EHOSTUNREACH WSAEHOSTUNREACH
62 # define EINPROGRESS WSAEINPROGRESS
65 # define EISCONN WSAEISCONN
68 # define ELOOP WSAELOOP
71 # define EMSGSIZE WSAEMSGSIZE
74 # define ENETDOWN WSAENETDOWN
77 # define ENETRESET WSAENETRESET
80 # define ENETUNREACH WSAENETUNREACH
83 # define ENOBUFS WSAENOBUFS
86 # define ENOPROTOOPT WSAENOPROTOOPT
89 # define ENOTCONN WSAENOTCONN
92 # define ENOTSOCK WSAENOTSOCK
95 # define EOPNOTSUPP WSAEOPNOTSUPP
98 # define EPFNOSUPPORT WSAEPFNOSUPPORT
101 # define EPROCLIM WSAEPROCLIM
103 # ifndef EPROTONOSUPPORT
104 # define EPROTONOSUPPORT WSAEPROTONOSUPPORT
107 # define EPROTOTYPE WSAEPROTOTYPE
110 # define EREMOTE WSAEREMOTE
113 # define ESHUTDOWN WSAESHUTDOWN
115 # ifndef ESOCKTNOSUPPORT
116 # define ESOCKTNOSUPPORT WSAESOCKTNOSUPPORT
119 # define ESTALE WSAESTALE
122 # define ETIMEDOUT WSAETIMEDOUT
124 # ifndef ETOOMANYREFS
125 # define ETOOMANYREFS WSAETOOMANYREFS
128 # define EUSERS WSAEUSERS
131 # define EWOULDBLOCK WSAEWOULDBLOCK
133 extern int of_wsaerr_to_errno(
int);
146 void *_backtrace[OF_BACKTRACE_SIZE];
154 + (instancetype)exception;
175 extern OFString* of_strerror(
int errNo);
An abstract class for storing objects in an array.
Definition: OFArray.h:95
The root class for all other classes inside ObjFW.
Definition: OFObject.h:364
An abstract class for storing, adding and removing objects in an array.
Definition: OFMutableArray.h:46
A class for handling strings.
Definition: OFString.h:91
The base class for all exceptions in ObjFW.
Definition: OFException.h:144