Click or drag to resize

DataWriterWaitForAcknowledgments Method

Blocks the calling thread until either all data written by the DataWriter is acknowledged by all matched DataReader entities that have ReliableReliabilityQos, or else the duration specified by the maxWait parameter elapses, whichever happens first.

Namespace:  OpenDDSharp.DDS
Assembly:  OpenDDSharp (in OpenDDSharp.dll) Version: 0.5.0.0
Syntax
public ReturnCode WaitForAcknowledgments(
	Duration maxWait
)

Parameters

maxWait
Type: OpenDDSharp.DDSDuration
The maximum Duration time to wait for the acknowledgments.

Return Value

Type: ReturnCode
The ReturnCode that indicates the operation result.
Remarks

This operation is intended to be used only if the DataWriter has configured ReliableReliabilityQos. Otherwise the operation will return immediately with Ok.

A return value of Ok indicates that all the samples written have been acknowledged by all reliable matched data readers; a return value of Timeout indicates that maxWait elapsed before all the data was acknowledged.

See Also