System.Net.Sockets.SocketType Enum

public enum SocketType

Base Types

Object
  ValueType
    Enum
      SocketType

Assembly

System

Library

Networking

Summary

Specifies the type of socket an instance of the Socket class represents.

Description

A SocketType member is required when constructing instances of the Socket class and specifies the functionality the instance supports.

See Also

System.Net.Sockets Namespace

Members

SocketType Fields

SocketType.Dgram Field
SocketType.Raw Field
SocketType.Rdm Field
SocketType.Seqpacket Field
SocketType.Stream Field
SocketType.Unknown Field
SocketType.value__ Field


SocketType.Dgram Field

Dgram = 2;

Summary

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.

See Also

System.Net.Sockets.SocketType Enum, System.Net.Sockets Namespace

SocketType.Raw Field

Raw = 3;

Summary

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

See Also

System.Net.Sockets.SocketType Enum, System.Net.Sockets Namespace

SocketType.Rdm Field

Rdm = 4;

Summary

Supports message-oriented, reliably delivered messages, and preserves message boundaries in data.

See Also

System.Net.Sockets.SocketType Enum, System.Net.Sockets Namespace

SocketType.Seqpacket Field

Seqpacket = 5;

Summary

Supports message-oriented, sequenced packets.

See Also

System.Net.Sockets.SocketType Enum, System.Net.Sockets Namespace

SocketType.Stream Field

Stream = 1;

Summary

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.

See Also

System.Net.Sockets.SocketType Enum, System.Net.Sockets Namespace

SocketType.Unknown Field

Unknown = -1;

Summary

Unknown socket type.

See Also

System.Net.Sockets.SocketType Enum, System.Net.Sockets Namespace

SocketType.value__ Field

value__;

See Also

System.Net.Sockets.SocketType Enum, System.Net.Sockets Namespace