System.Net.Sockets.TcpClient.NoDelay Property

Gets or sets a value that disables a delay when send or receive buffers are not full.

Syntax

public bool NoDelay { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

When TcpClient.NoDelay is false, a System.Net.Sockets.TcpClient does not send a packet over the network until it has collected a significant amount of outgoing data. Because of the amount of overhead in a TCP segment, sending small amounts of data is inefficient. However, situations do exist where you need to send very small amounts of data or expect immediate responses from each packet you send. Your decision should weigh the relative importance of network efficiency versus application requirements.

Requirements

Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0