O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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()

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required