nn::uds::CTR::SetMaxSendDelay Function

Syntax

nn::Result SetMaxSendDelay(
nn::fnd::TimeSpan maxDelay
);

Arguments

Name Description
in maxDelay The maximum send delay time. Specify a value in the range from 5 to 100 milliseconds. The default is 10 milliseconds.

Return Values

Returns the function's execution result. Returns one of the Result values listed below.
Value Description
ResultSuccess Process was successful.
ResultNotInitialized The library is not initialized. Execute the nn::uds::Initialize function.
ResultInvalidState Not in an executable state. Returned when executed while communicating.
ResultWirelessOff Transitioned to wireless OFF mode. Re-initialization is required.
A value other than the above. Failed for reasons other than those given above.

Description

Specifies the maximum send delay time.

For the system to improve the efficiency of its physical layer, smaller packets are sent bundled together. As a result, when the maximum amount of data is sent by the SendTo function, it may wait up to the amount of time set by this function. When latency is more important than communication efficiency, you can specify NO_WAIT to the SendTo function to avoid this delay in sending data.

This can be executed only when not connected to the network.

Revision History

2010/11/15
The settable range of values, originally 10 to 100 milliseconds, has been expanded to 5 to 100 milliseconds.
2010/10/15
Initial version.

CONFIDENTIAL