Name

ProtocolType

Synopsis

This enumeration contains settings for the protocol type of a socket. A protocol type must be specified for every Socket instance.

public enum ProtocolType {
   Unspecified = 0,
   IP = 0,
   Icmp = 1,
   Igmp = 2,
   Ggp = 3,
   Tcp = 6,
   Pup = 12,
   Udp = 17,
   Idp = 22,
   ND = 77,
   Raw = 255,
   Ipx = 1000,
   Spx = 1256,
   SpxII = 1257,
   Unknown = -1
}

Hierarchy

System.ObjectSystem.ValueTypeSystem.Enum(System.IComparable, System.IFormattable, System.IConvertible)ProtocolType

Returned By

Socket.ProtocolType

Passed To

Socket.Socket()

Get C# in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.