Specifies the type of socket an instance of the
System.Net.Sockets.Socket class represents.
public enum SocketType
Member Name | Description |
---|
Dgram | Supports datagrams, which are connectionless, unreliable
messages of a fixed (typically small) maximum length. Uses the User Datagram
Protocol (ProtocolType.Udp ) protocol
and the AddressFamily.InterNetwork address family. |
Raw | Supports access to the underlying
transport protocol. Can communicate through protocols other than ProtocolType.Tcp and ProtocolType.Udp,
such as Internet Control Message Protocol (ProtocolType.Icmp) and Internet Group Management
Protocol (ProtocolType.Igmp). |
Rdm | Supports message-oriented, reliably delivered messages, and preserves message
boundaries in data. |
Seqpacket | Supports message-oriented, sequenced packets. |
Stream | Supports reliable, two-way, connection-based byte
streams with an out-of-band (OOB) data transmission mechanism. Uses the Transmission
Control Protocol (ProtocolType.Tcp) protocol and the AddressFamily.InterNetwork address family. |
Unknown | Unknown socket type. |
Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Assembly Versions: 1.0.x.x, 1.0.5000.0, 2.0.0.0