ProtocolType Enumeration

 

Specifies the protocols that the Socket class supports.

Namespace:   System.Net.Sockets
Assembly:  System (in System.dll)

type ProtocolType

Member nameDescription
Ggp

Gateway To Gateway Protocol.

Icmp

Internet Control Message Protocol.

IcmpV6

Internet Control Message Protocol for IPv6.

Idp

Internet Datagram Protocol.

Igmp

Internet Group Management Protocol.

IP

Internet Protocol.

IPSecAuthenticationHeader

IPv6 Authentication header. For details, see RFC 2292 section 2.2.1, available at http://www.ietf.org.

IPSecEncapsulatingSecurityPayload

IPv6 Encapsulating Security Payload header.

IPv4

Internet Protocol version 4.

IPv6

Internet Protocol version 6 (IPv6).

IPv6DestinationOptions

IPv6 Destination Options header.

IPv6FragmentHeader

IPv6 Fragment header.

IPv6HopByHopOptions

IPv6 Hop by Hop Options header.

IPv6NoNextHeader

IPv6 No next header.

IPv6RoutingHeader

IPv6 Routing header.

Ipx

Internet Packet Exchange Protocol.

ND

Net Disk Protocol (unofficial).

Pup

PARC Universal Packet Protocol.

Raw

Raw IP packet protocol.

Spx

Sequenced Packet Exchange protocol.

SpxII

Sequenced Packet Exchange version 2 protocol.

Tcp

Transmission Control Protocol.

Udp

User Datagram Protocol.

Unknown

Unknown protocol.

Unspecified

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.

The following example demonstrates how to use ProtocolType to instantiate a Socket.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.1
Return to top
Show: