ProtocolType 列舉

定義

指定 Socket 類別支援的通訊協定。Specifies the protocols that the Socket class supports.

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

欄位

Ggp 3

閘道器對閘道器通訊協定。Gateway To Gateway Protocol.

Icmp 1

網際網路控制訊息通訊協定 (Internet Control Message Protocol)。Internet Control Message Protocol.

IcmpV6 58

IPv6 的網際網路控制訊息通訊協定 (Internet Control Message Protocol)。Internet Control Message Protocol for IPv6.

Idp 22

網際網路資料包 (Datagram) 通訊協定。Internet Datagram Protocol.

Igmp 2

網際網路群組管理通訊協定。Internet Group Management Protocol.

IP 0

網際網路通訊協定。Internet Protocol.

IPSecAuthenticationHeader 51

IPv6 驗證標頭。IPv6 Authentication header. 如需詳細資料,請參閱 RFC 2292 章節 2.2.1,網址為 https://www.ietf.org。For details, see RFC 2292 section 2.2.1, available at https://www.ietf.org.

IPSecEncapsulatingSecurityPayload 50

IPv6 封裝安全性裝載標頭。IPv6 Encapsulating Security Payload header.

IPv4 4

網際網路通訊協定第 4 版。Internet Protocol version 4.

IPv6 41

網際網路通訊協定第 6 版 (IPv6)。Internet Protocol version 6 (IPv6).

IPv6DestinationOptions 60

IPv6 目的端選項標頭。IPv6 Destination Options header.

IPv6FragmentHeader 44

IPv6 片段標頭。IPv6 Fragment header.

IPv6HopByHopOptions 0

IPv6 躍點選項標頭。IPv6 Hop by Hop Options header.

IPv6NoNextHeader 59

IPv6 無下一個標頭。IPv6 No next header.

IPv6RoutingHeader 43

IPv6 路由標頭。IPv6 Routing header.

Ipx 1000

網際網路封包交換通訊協定。Internet Packet Exchange Protocol.

ND 77

Net Disk 通訊協定 (非官方)。Net Disk Protocol (unofficial).

Pup 12

PARC 通用封包通訊協定。PARC Universal Packet Protocol.

Raw 255

Raw IP 封包通訊協定。Raw IP packet protocol.

Spx 1256

循序封包交換通訊協定。Sequenced Packet Exchange protocol.

SpxII 1257

循序封包交換通訊協定第 2 版。Sequenced Packet Exchange version 2 protocol.

Tcp 6

傳輸控制通訊協定。Transmission Control Protocol.

Udp 17

使用者資料包通訊協定 (User Datagram Protocol,UDP)。User Datagram Protocol.

Unknown -1

不明的通訊協定。Unknown protocol.

Unspecified 0

未指定的通訊協定。Unspecified protocol.

備註

Socket類別會ProtocolType使用列舉來通知 Windows 通訊端 API 所要求的通訊協定。The Socket class uses the ProtocolType enumeration to inform the Windows Sockets API of the requested protocol. 電腦上必須要有要求之通訊協定的低層級驅動程式軟體, Socket才能成功建立。Low-level driver software for the requested protocol must be present on the computer for the Socket to be created successfully.

適用於

另請參閱