ProtocolType Enumeration

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Specifies the protocols that the Socket class supports.

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

public enum ProtocolType

Member nameDescription
IPInternet Protocol.
IPv6HopByHopOptionsIPv6 Hop by Hop Options header.
IcmpInternet Control Message Protocol.
IgmpInternet Group Management Protocol.
GgpGateway To Gateway Protocol.
IPv4Internet Protocol version 4.
TcpTransmission Control Protocol.
PupPARC Universal Packet Protocol.
UdpUser Datagram Protocol.
IdpInternet Datagram Protocol.
IPv6Internet Protocol version 6 (IPv6).
IPv6RoutingHeaderIPv6 Routing header.
IPv6FragmentHeaderIPv6 Fragment header.
IPSecEncapsulatingSecurityPayloadIPv6 Encapsulating Security Payload header.
IPSecAuthenticationHeaderIPv6 Authentication header. For details, see RFC 2292 section 2.2.1, available at http://www.ietf.org.
IcmpV6Internet Control Message Protocol for IPv6.
IPv6NoNextHeaderIPv6 No next header.
IPv6DestinationOptionsIPv6 Destination Options header.
NDNet Disk Protocol (unofficial).
RawRaw IP packet protocol.
UnspecifiedUnspecified protocol.
IpxInternet Packet Exchange Protocol.
SpxSequenced Packet Exchange protocol.
SpxIISequenced Packet Exchange version 2 protocol.
UnknownUnknown 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.

Show: