public enum SocketType
Object
ValueType
Enum
SocketType
System
Networking
Specifies the type of socket an instance of the Socket class represents.
A SocketType member is required when constructing instances of the Socket class and specifies the functionality the instance supports.
System.Net.Sockets Namespace
SocketType Fields
SocketType.Dgram Field
SocketType.Raw Field
SocketType.Rdm Field
SocketType.Seqpacket Field
SocketType.Stream Field
SocketType.Unknown Field
SocketType.value__ Field
Dgram = 2;
Supports datagrams, which are connectionless, unreliable messages of a fixed (typically small) maximum length. Uses the User Datagram Protocol (System.Net.Sockets.ProtocolType.Udp ) protocol and the System.Net.Sockets.AddressFamily.InterNetwork address family.
System.Net.Sockets.SocketType Enum, System.Net.Sockets Namespace
Raw = 3;
Supports access to the underlying transport protocol. Can communicate through protocols other than System.Net.Sockets.ProtocolType.Tcp and System.Net.Sockets.ProtocolType.Udp, such as Internet Control Message Protocol (System.Net.Sockets.ProtocolType.Icmp) and Internet Group Management Protocol (System.Net.Sockets.ProtocolType.Igmp).
System.Net.Sockets.SocketType Enum, System.Net.Sockets Namespace
Rdm = 4;
Supports message-oriented, reliably delivered messages, and preserves message boundaries in data.
System.Net.Sockets.SocketType Enum, System.Net.Sockets Namespace
Seqpacket = 5;
Supports message-oriented, sequenced packets.
System.Net.Sockets.SocketType Enum, System.Net.Sockets Namespace
Stream = 1;
Supports reliable, two-way, connection-based byte streams with an out-of-band (OOB) data transmission mechanism. Uses the Transmission Control Protocol (System.Net.Sockets.ProtocolType.Tcp) protocol and the System.Net.Sockets.AddressFamily.InterNetwork address family.
System.Net.Sockets.SocketType Enum, System.Net.Sockets Namespace
Unknown = -1;
Unknown socket type.
System.Net.Sockets.SocketType Enum, System.Net.Sockets Namespace
value__;
System.Net.Sockets.SocketType Enum, System.Net.Sockets Namespace