Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Socket.NoDelay Property

Gets or sets a Boolean value that specifies whether the Socket is using the Nagle algorithm.

Namespace:  System.Net.Sockets
Assembly:  System.Net (in System.Net.dll)

public bool NoDelay { get; set; }

Property Value

Type: System.Boolean
false if the Socket uses the Nagle algorithm; otherwise, true. The default is false.

ExceptionCondition
SocketException

An error occurred when attempting to access the Socket. See the Remarks section for more information.

ObjectDisposedException

The Socket has been closed.

The Nagle algorithm reduces network traffic by causing the socket to buffer packets for up to 200 milliseconds and then combines and sends them in one packet

The majority of network applications should use the Nagle algorithm.

If you receive a SocketException, use the SocketException.ErrorCode property to obtain the specific error code. After you have obtained this code, refer to the Windows Sockets version 2 API error code documentation in the MSDN library for a detailed description of the error.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2015 Microsoft