This is work in progress.

Windows / Headers / winsock2.h

WinSock2.h

definitions to be used with the WinSock 2 DLL and WinSock 2 applications.

Associated Error Codes

Below is a list of error codes found for this header.

SymbolicValueDescription
WSAEINTR0x2714
WSAEBADF0x2719
WSAEACCES0x271d
WSAEFAULT0x271e
WSAEINVAL0x2726
WSAEMFILE0x2728
WSAEWOULDBLOCK0x2733
WSAEINPROGRESS0x2734
WSAEALREADY0x2735
WSAENOTSOCK0x2736
WSAEDESTADDRREQ0x2737
WSAEMSGSIZE0x2738
WSAEPROTOTYPE0x2739
WSAENOPROTOOPT0x273a
WSAEPROTONOSUPPORT0x273b
WSAESOCKTNOSUPPORT0x273c
WSAEOPNOTSUPP0x273d
WSAEPFNOSUPPORT0x273e
WSAEAFNOSUPPORT0x273f
WSAEADDRINUSE0x2740
WSAEADDRNOTAVAIL0x2741
WSAENETDOWN0x2742
WSAENETUNREACH0x2743
WSAENETRESET0x2744
WSAECONNABORTED0x2745
WSAECONNRESET0x2746
WSAENOBUFS0x2747
WSAEISCONN0x2748
WSAENOTCONN0x2749
WSAESHUTDOWN0x274a
WSAETOOMANYREFS0x274b
WSAETIMEDOUT0x274c
WSAECONNREFUSED0x274d
WSAELOOP0x274e
WSAENAMETOOLONG0x274f
WSAEHOSTDOWN0x2750
WSAEHOSTUNREACH0x2751
WSAENOTEMPTY0x2752
WSAEPROCLIM0x2753
WSAEUSERS0x2754
WSAEDQUOT0x2755
WSAESTALE0x2756
WSAEREMOTE0x2757
WSASYSNOTREADY0x276b
WSAVERNOTSUPPORTED0x276c
WSANOTINITIALISED0x276d
WSAEDISCON0x2775
WSAENOMORE0x2776
WSAECANCELLED0x2777
WSAEINVALIDPROCTABLE0x2778
WSAEINVALIDPROVIDER0x2779
WSAEPROVIDERFAILEDINIT0x277a
WSASYSCALLFAILURE0x277b
WSASERVICE_NOT_FOUND0x277c
WSATYPE_NOT_FOUND0x277d
WSA_E_NO_MORE0x277e
WSA_E_CANCELLED0x277f
WSAEREFUSED0x2780
WSAHOST_NOT_FOUND0x2af9
WSATRY_AGAIN0x2afa
WSANO_RECOVERY0x2afb
WSANO_DATA0x2afc
62 entries