Changeset 1372 for trunk/src/wsock32/wsock32.h
- Timestamp:
- Oct 20, 1999, 12:03:55 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wsock32/wsock32.h
r518 r1372 1 /* $Id: wsock32.h,v 1. 4 1999-08-16 20:18:40phaller Exp $ */1 /* $Id: wsock32.h,v 1.5 1999-10-20 10:03:54 phaller Exp $ */ 2 2 3 3 /* WSOCK32.H--definitions & conversions for Odin's wsock32.dll. … … 400 400 */ 401 401 402 /*403 * This is used instead of -1, since the404 * SOCKET type is unsigned.405 */406 #define INVALID_SOCKET (SOCKET)(~0)407 #define SOCKET_ERROR (-1)408 402 409 403 /* … … 561 555 #define FD_CONNECT 0x10 562 556 #define FD_CLOSE 0x20 563 564 /*565 * All Windows Sockets error constants are biased by WSABASEERR from566 * the "normal"567 */568 #define WSABASEERR 10000569 /*570 * Windows Sockets definitions of regular Microsoft C error constants571 */572 #define WSAEINTR (WSABASEERR+4)573 #define WSAEBADF (WSABASEERR+9)574 #define WSAEACCES (WSABASEERR+13)575 #define WSAEFAULT (WSABASEERR+14)576 #define WSAEINVAL (WSABASEERR+22)577 #define WSAEMFILE (WSABASEERR+24)578 579 /*580 * Windows Sockets definitions of regular Berkeley error constants581 */582 #define WSAEWOULDBLOCK (WSABASEERR+35)583 #define WSAEINPROGRESS (WSABASEERR+36)584 #define WSAEALREADY (WSABASEERR+37)585 #define WSAENOTSOCK (WSABASEERR+38)586 #define WSAEDESTADDRREQ (WSABASEERR+39)587 #define WSAEMSGSIZE (WSABASEERR+40)588 #define WSAEPROTOTYPE (WSABASEERR+41)589 #define WSAENOPROTOOPT (WSABASEERR+42)590 #define WSAEPROTONOSUPPORT (WSABASEERR+43)591 #define WSAESOCKTNOSUPPORT (WSABASEERR+44)592 #define WSAEOPNOTSUPP (WSABASEERR+45)593 #define WSAEPFNOSUPPORT (WSABASEERR+46)594 #define WSAEAFNOSUPPORT (WSABASEERR+47)595 #define WSAEADDRINUSE (WSABASEERR+48)596 #define WSAEADDRNOTAVAIL (WSABASEERR+49)597 #define WSAENETDOWN (WSABASEERR+50)598 #define WSAENETUNREACH (WSABASEERR+51)599 #define WSAENETRESET (WSABASEERR+52)600 #define WSAECONNABORTED (WSABASEERR+53)601 #define WSAECONNRESET (WSABASEERR+54)602 #define WSAENOBUFS (WSABASEERR+55)603 #define WSAEISCONN (WSABASEERR+56)604 #define WSAENOTCONN (WSABASEERR+57)605 #define WSAESHUTDOWN (WSABASEERR+58)606 #define WSAETOOMANYREFS (WSABASEERR+59)607 #define WSAETIMEDOUT (WSABASEERR+60)608 #define WSAECONNREFUSED (WSABASEERR+61)609 #define WSAELOOP (WSABASEERR+62)610 #define WSAENAMETOOLONG (WSABASEERR+63)611 #define WSAEHOSTDOWN (WSABASEERR+64)612 #define WSAEHOSTUNREACH (WSABASEERR+65)613 #define WSAENOTEMPTY (WSABASEERR+66)614 #define WSAEPROCLIM (WSABASEERR+67)615 #define WSAEUSERS (WSABASEERR+68)616 #define WSAEDQUOT (WSABASEERR+69)617 #define WSAESTALE (WSABASEERR+70)618 #define WSAEREMOTE (WSABASEERR+71)619 620 #define WSAEDISCON (WSABASEERR+101)621 622 /*623 * Extended Windows Sockets error constant definitions624 */625 #define WSASYSNOTREADY (WSABASEERR+91)626 #define WSAVERNOTSUPPORTED (WSABASEERR+92)627 #define WSANOTINITIALISED (WSABASEERR+93)628 629 /*630 * Error return codes from gethostbyname() and gethostbyaddr()631 * (when using the resolver). Note that these errors are632 * retrieved via WSAGetLastError() and must therefore follow633 * the rules for avoiding clashes with error numbers from634 * specific implementations or language run-time systems.635 * For this reason the codes are based at WSABASEERR+1001.636 * Note also that [WSA]NO_ADDRESS is defined only for637 * compatibility purposes.638 */639 640 #define Wh_errno WSAGetLastError()641 642 /* Authoritative Answer: Host not found */643 #define WSAHOST_NOT_FOUND (WSABASEERR+1001)644 #define WHOST_NOT_FOUND WSAHOST_NOT_FOUND645 646 /* Non-Authoritative: Host not found, or SERVERFAIL */647 #define WSATRY_AGAIN (WSABASEERR+1002)648 #define WTRY_AGAIN WSATRY_AGAIN649 650 /* Non recoverable errors, FORMERR, REFUSED, NOTIMP */651 #define WSANO_RECOVERY (WSABASEERR+1003)652 #define WNO_RECOVERY WSANO_RECOVERY653 654 /* Valid name, no data record of requested type */655 #define WSANO_DATA (WSABASEERR+1004)656 #define WNO_DATA WSANO_DATA657 658 /* no address, look for MX record */659 #define WSANO_ADDRESS WSANO_DATA660 #define WNO_ADDRESS WSANO_ADDRESS661 557 662 558
Note:
See TracChangeset
for help on using the changeset viewer.