diff --git a/PInvoke/Ws2_32/WinSock2.cs b/PInvoke/Ws2_32/WinSock2.cs
index 96157ca8..e1ab46ec 100644
--- a/PInvoke/Ws2_32/WinSock2.cs
+++ b/PInvoke/Ws2_32/WinSock2.cs
@@ -180,7 +180,7 @@ namespace Vanara.PInvoke
public const int SO_USELOOPBACK = 0x0040;
/// A value that indicates a function failure.
- public const uint SOCKET_ERROR = unchecked((uint)-1);
+ public const int SOCKET_ERROR = -1;
/// The socket option level.
public const int SOL_SOCKET = 0xffff;
@@ -424,141 +424,6 @@ namespace Vanara.PInvoke
SG_CONSTRAINED_GROUP = 0x02
}
- /// Protocols. The IPv6 defines are specified in RFC 2292.
- public enum IPPROTO
- {
- ///
- IPPROTO_HOPOPTS = 0,
-
- ///
- /// The Internet Control Message Protocol (ICMP). This is a possible value when the af parameter is AF_UNSPEC, AF_INET, or
- /// AF_INET6 and the type parameter is SOCK_RAW or unspecified.
- /// This protocol value is supported on Windows XP and later.
- ///
- IPPROTO_ICMP = 1,
-
- ///
- /// The Internet Group Management Protocol (IGMP). This is a possible value when the af parameter is AF_UNSPEC, AF_INET, or
- /// AF_INET6 and the type parameter is SOCK_RAW or unspecified.
- /// This protocol value is supported on Windows XP and later.
- ///
- IPPROTO_IGMP = 2,
-
- ///
- /// The Bluetooth Radio Frequency Communications (Bluetooth RFCOMM) protocol. This is a possible value when the af parameter is
- /// AF_BTH and the type parameter is SOCK_STREAM.
- /// This protocol value is supported on Windows XP with SP2 or later.
- ///
- IPPROTO_GGP = 3,
-
- ///
- IPPROTO_IPV4 = 4,
-
- ///
- IPPROTO_ST = 5,
-
- ///
- /// The Transmission Control Protocol (TCP). This is a possible value when the af parameter is AF_INET or AF_INET6 and the type
- /// parameter is SOCK_STREAM.
- ///
- IPPROTO_TCP = 6,
-
- ///
- IPPROTO_CBT = 7,
-
- ///
- IPPROTO_EGP = 8,
-
- ///
- IPPROTO_IGP = 9,
-
- ///
- IPPROTO_PUP = 12,
-
- ///
- /// The User Datagram Protocol (UDP). This is a possible value when the af parameter is AF_INET or AF_INET6 and the type
- /// parameter is SOCK_DGRAM.
- ///
- IPPROTO_UDP = 17,
-
- ///
- IPPROTO_IDP = 22,
-
- ///
- IPPROTO_RDP = 27,
-
- ///
- IPPROTO_IPV6 = 41,
-
- ///
- IPPROTO_ROUTING = 43,
-
- ///
- IPPROTO_FRAGMENT = 44,
-
- ///
- IPPROTO_ESP = 50,
-
- ///
- IPPROTO_AH = 51,
-
- ///
- /// The Internet Control Message Protocol Version 6 (ICMPv6). This is a possible value when the af parameter is AF_UNSPEC,
- /// AF_INET, or AF_INET6 and the type parameter is SOCK_RAW or unspecified.
- /// This protocol value is supported on Windows XP and later.
- ///
- IPPROTO_ICMPV6 = 58,
-
- ///
- IPPROTO_NONE = 59,
-
- ///
- IPPROTO_DSTOPTS = 60,
-
- ///
- IPPROTO_ND = 77,
-
- ///
- IPPROTO_ICLFXBM = 78,
-
- ///
- IPPROTO_PIM = 103,
-
- ///
- /// The PGM protocol for reliable multicast. This is a possible value when the af parameter is AF_INET and the type parameter is
- /// SOCK_RDM. On the Windows SDK released for Windows Vista and later, this protocol is also called IPPROTO_PGM.
- /// This protocol value is only supported if the Reliable Multicast Protocol is installed.
- ///
- IPPROTO_PGM = 113,
-
- ///
- IPPROTO_L2TP = 115,
-
- ///
- IPPROTO_SCTP = 132,
-
- ///
- IPPROTO_RAW = 255,
-
- ///
- IPPROTO_MAX = 256,
-
- ///
- IPPROTO_RESERVED_RAW = 257,
-
- ///
- IPPROTO_RESERVED_IPSEC = 258,
-
- ///
- IPPROTO_RESERVED_IPSECOFFLOAD = 259,
-
- ///
- IPPROTO_RESERVED_WNV = 260,
-
- ///
- IPPROTO_RESERVED_MAX = 261
- }
-
/// Indicate either big-endian or little-endian with the values 0 and 1 respectively.
[PInvokeData("winsock2.h", MSDNShortId = "be5f3e81-1442-43c7-9e4e-9eb2b2a05132")]
public enum NetworkByteOrder