Socket Properties
.NET Framework 4
The Socket type exposes the following members.
| Name | Description | |
|---|---|---|
|
AddressFamily | Gets the address family of the Socket. |
|
Available | Gets the amount of data that has been received from the network and is available to be read. |
|
Blocking | Gets or sets a value that indicates whether the Socket is in blocking mode. |
|
Connected | Gets a value that indicates whether a Socket is connected to a remote host as of the last Send or Receive operation. |
|
DontFragment | Gets or sets a Boolean value that specifies whether the Socket allows Internet Protocol (IP) datagrams to be fragmented. |
|
EnableBroadcast | Gets or sets a Boolean value that specifies whether the Socket can send or receive broadcast packets. |
|
ExclusiveAddressUse | Gets or sets a Boolean value that specifies whether the Socket allows only one process to bind to a port. |
|
Handle | Gets the operating system handle for the Socket. |
|
IsBound | Gets a value that indicates whether the Socket is bound to a specific local port. |
|
LingerState | Gets or sets a value that specifies whether the Socket will delay closing a socket in an attempt to send all pending data. |
|
LocalEndPoint | Gets the local endpoint. |
|
MulticastLoopback | Gets or sets a value that specifies whether outgoing multicast packets are delivered to the sending application. |
|
NoDelay | Gets or sets a Boolean value that specifies whether the stream Socket is using the Nagle algorithm. |
|
OSSupportsIPv4 | Indicates whether the underlying operating system and network adaptors support Internet Protocol version 4 (IPv4). |
|
OSSupportsIPv6 | Indicates whether the underlying operating system and network adaptors support Internet Protocol version 6 (IPv6). |
|
ProtocolType | Gets the protocol type of the Socket. |
|
ReceiveBufferSize | Gets or sets a value that specifies the size of the receive buffer of the Socket. |
|
ReceiveTimeout | Gets or sets a value that specifies the amount of time after which a synchronous Receive call will time out. |
|
RemoteEndPoint | Gets the remote endpoint. |
|
SendBufferSize | Gets or sets a value that specifies the size of the send buffer of the Socket. |
|
SendTimeout | Gets or sets a value that specifies the amount of time after which a synchronous Send call will time out. |
|
SocketType | Gets the type of the Socket. |
|
SupportsIPv4 | Obsolete. Gets a value indicating whether IPv4 support is available and enabled on the current host. |
|
SupportsIPv6 | Obsolete. Gets a value that indicates whether the Framework supports IPv6 for certain obsolete Dns members. |
|
Ttl | Gets or sets a value that specifies the Time To Live (TTL) value of Internet Protocol (IP) packets sent by the Socket. |
|
UseOnlyOverlappedIO | Specifies whether the socket should only use Overlapped I/O mode. |