nn::uds::CTR::SetMaxSendDelay Functionnn::Result SetMaxSendDelay( nn::fnd::TimeSpan maxDelay );
| 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. |
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. |
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.
CONFIDENTIAL