ProtocolType ProtocolType ProtocolType ProtocolType Enum


Specifies the protocols that the Socket class supports.

public enum class ProtocolType
public enum ProtocolType
type ProtocolType = 
Public Enum ProtocolType


Ggp Ggp Ggp Ggp 3

Gateway To Gateway Protocol.

Icmp Icmp Icmp Icmp 1

Internet Control Message Protocol.

IcmpV6 IcmpV6 IcmpV6 IcmpV6 58

Internet Control Message Protocol for IPv6.

Idp Idp Idp Idp 22

Internet Datagram Protocol.

Igmp Igmp Igmp Igmp 2

Internet Group Management Protocol.


Internet Protocol.

IPSecAuthenticationHeader IPSecAuthenticationHeader IPSecAuthenticationHeader IPSecAuthenticationHeader 51

IPv6 Authentication header. For details, see RFC 2292 section 2.2.1, available at

IPSecEncapsulatingSecurityPayload IPSecEncapsulatingSecurityPayload IPSecEncapsulatingSecurityPayload IPSecEncapsulatingSecurityPayload 50

IPv6 Encapsulating Security Payload header.

IPv4 IPv4 IPv4 IPv4 4

Internet Protocol version 4.

IPv6 IPv6 IPv6 IPv6 41

Internet Protocol version 6 (IPv6).

IPv6DestinationOptions IPv6DestinationOptions IPv6DestinationOptions IPv6DestinationOptions 60

IPv6 Destination Options header.

IPv6FragmentHeader IPv6FragmentHeader IPv6FragmentHeader IPv6FragmentHeader 44

IPv6 Fragment header.

IPv6HopByHopOptions IPv6HopByHopOptions IPv6HopByHopOptions IPv6HopByHopOptions 0

IPv6 Hop by Hop Options header.

IPv6NoNextHeader IPv6NoNextHeader IPv6NoNextHeader IPv6NoNextHeader 59

IPv6 No next header.

IPv6RoutingHeader IPv6RoutingHeader IPv6RoutingHeader IPv6RoutingHeader 43

IPv6 Routing header.

Ipx Ipx Ipx Ipx 1000

Internet Packet Exchange Protocol.


Net Disk Protocol (unofficial).

Pup Pup Pup Pup 12

PARC Universal Packet Protocol.

Raw Raw Raw Raw 255

Raw IP packet protocol.

Spx Spx Spx Spx 1256

Sequenced Packet Exchange protocol.

SpxII SpxII SpxII SpxII 1257

Sequenced Packet Exchange version 2 protocol.

Tcp Tcp Tcp Tcp 6

Transmission Control Protocol.

Udp Udp Udp Udp 17

User Datagram Protocol.

Unknown Unknown Unknown Unknown -1

Unknown protocol.

Unspecified Unspecified Unspecified Unspecified 0

Unspecified protocol.


The Socket class uses the ProtocolType enumeration to inform the Windows Sockets API of the requested protocol. Low-level driver software for the requested protocol must be present on the computer for the Socket to be created successfully.

Applies to

See also