mirror of https://github.com/dahall/Vanara.git
Fixed incorrect type of SOCKET_ERROR (should be int)
parent
350b2ec3a3
commit
c50c0bc686
|
@ -180,7 +180,7 @@ namespace Vanara.PInvoke
|
|||
public const int SO_USELOOPBACK = 0x0040;
|
||||
|
||||
/// <summary>A value that indicates a function failure.</summary>
|
||||
public const uint SOCKET_ERROR = unchecked((uint)-1);
|
||||
public const int SOCKET_ERROR = -1;
|
||||
|
||||
/// <summary>The socket option level.</summary>
|
||||
public const int SOL_SOCKET = 0xffff;
|
||||
|
@ -424,141 +424,6 @@ namespace Vanara.PInvoke
|
|||
SG_CONSTRAINED_GROUP = 0x02
|
||||
}
|
||||
|
||||
/// <summary>Protocols. The IPv6 defines are specified in RFC 2292.</summary>
|
||||
public enum IPPROTO
|
||||
{
|
||||
/// <summary/>
|
||||
IPPROTO_HOPOPTS = 0,
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// <para>This protocol value is supported on Windows XP and later.</para>
|
||||
/// </summary>
|
||||
IPPROTO_ICMP = 1,
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// <para>This protocol value is supported on Windows XP and later.</para>
|
||||
/// </summary>
|
||||
IPPROTO_IGMP = 2,
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// <para>This protocol value is supported on Windows XP with SP2 or later.</para>
|
||||
/// </summary>
|
||||
IPPROTO_GGP = 3,
|
||||
|
||||
/// <summary/>
|
||||
IPPROTO_IPV4 = 4,
|
||||
|
||||
/// <summary/>
|
||||
IPPROTO_ST = 5,
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
IPPROTO_TCP = 6,
|
||||
|
||||
/// <summary/>
|
||||
IPPROTO_CBT = 7,
|
||||
|
||||
/// <summary/>
|
||||
IPPROTO_EGP = 8,
|
||||
|
||||
/// <summary/>
|
||||
IPPROTO_IGP = 9,
|
||||
|
||||
/// <summary/>
|
||||
IPPROTO_PUP = 12,
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
IPPROTO_UDP = 17,
|
||||
|
||||
/// <summary/>
|
||||
IPPROTO_IDP = 22,
|
||||
|
||||
/// <summary/>
|
||||
IPPROTO_RDP = 27,
|
||||
|
||||
/// <summary/>
|
||||
IPPROTO_IPV6 = 41,
|
||||
|
||||
/// <summary/>
|
||||
IPPROTO_ROUTING = 43,
|
||||
|
||||
/// <summary/>
|
||||
IPPROTO_FRAGMENT = 44,
|
||||
|
||||
/// <summary/>
|
||||
IPPROTO_ESP = 50,
|
||||
|
||||
/// <summary/>
|
||||
IPPROTO_AH = 51,
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// <para>This protocol value is supported on Windows XP and later.</para>
|
||||
/// </summary>
|
||||
IPPROTO_ICMPV6 = 58,
|
||||
|
||||
/// <summary/>
|
||||
IPPROTO_NONE = 59,
|
||||
|
||||
/// <summary/>
|
||||
IPPROTO_DSTOPTS = 60,
|
||||
|
||||
/// <summary/>
|
||||
IPPROTO_ND = 77,
|
||||
|
||||
/// <summary/>
|
||||
IPPROTO_ICLFXBM = 78,
|
||||
|
||||
/// <summary/>
|
||||
IPPROTO_PIM = 103,
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// <para>This protocol value is only supported if the Reliable Multicast Protocol is installed.</para>
|
||||
/// </summary>
|
||||
IPPROTO_PGM = 113,
|
||||
|
||||
/// <summary/>
|
||||
IPPROTO_L2TP = 115,
|
||||
|
||||
/// <summary/>
|
||||
IPPROTO_SCTP = 132,
|
||||
|
||||
/// <summary/>
|
||||
IPPROTO_RAW = 255,
|
||||
|
||||
/// <summary/>
|
||||
IPPROTO_MAX = 256,
|
||||
|
||||
/// <summary/>
|
||||
IPPROTO_RESERVED_RAW = 257,
|
||||
|
||||
/// <summary/>
|
||||
IPPROTO_RESERVED_IPSEC = 258,
|
||||
|
||||
/// <summary/>
|
||||
IPPROTO_RESERVED_IPSECOFFLOAD = 259,
|
||||
|
||||
/// <summary/>
|
||||
IPPROTO_RESERVED_WNV = 260,
|
||||
|
||||
/// <summary/>
|
||||
IPPROTO_RESERVED_MAX = 261
|
||||
}
|
||||
|
||||
/// <summary>Indicate either big-endian or little-endian with the values 0 and 1 respectively.</summary>
|
||||
[PInvokeData("winsock2.h", MSDNShortId = "be5f3e81-1442-43c7-9e4e-9eb2b2a05132")]
|
||||
public enum NetworkByteOrder
|
||||
|
|
Loading…
Reference in New Issue