Dart.Ftp Namespace > TcpSocketOption Class : NoDelay Property |
<DefaultValueAttribute(False)> Public Property NoDelay As Boolean
Dim instance As TcpSocketOption Dim value As Boolean instance.NoDelay = value value = instance.NoDelay
[DefaultValue(false)] public bool NoDelay {get; set;}
[DefaultValue(false)] public: property bool NoDelay { bool get(); void set ( bool value); }
When small pieces of data (such as single bytes) are send many times consecutively, inefficient packets can be sent with one byte of useful data and 40 bytes of header information. Nagle's algorithm specifies that this type of data should be automatically concatenated and sent in a single packet. When true, Nagle's algorithm is defeated and data is immediately sent in a dedicated packet. When false, Nagle's algorithm is used and consecutive Socket Send calls might send data in a single (more efficient) packet.
Setting this property to true may result in a speed optimization (because packets are sent immediately, without having to wait to see if Send is called again). Setting this property to false results in data being transmitted more efficiently.