Click or drag to resize

SubscriberCreateDataReader Method (ITopicDescription, DataReaderListener, StatusMask)

Creates a new DataReader with the default QoS policies and attaches to it the specified DataReaderListener.

Namespace:  OpenDDSharp.DDS
Assembly:  OpenDDSharp (in OpenDDSharp.dll) Version: 0.5.0.0
Syntax
public DataReader CreateDataReader(
	ITopicDescription topicDescription,
	DataReaderListener listener,
	StatusMask statusMask
)

Parameters

topicDescription
Type: OpenDDSharp.DDSITopicDescription
The ITopicDescription that the DataReader will be associated with.
listener
Type: OpenDDSharp.OpenDDS.DCPSDataReaderListener
The DataReaderListener to be attached to the newly created DataReader.
statusMask
Type: OpenDDSharp.DDSStatusMask
The StatusMask of which status changes the listener should be notified.

Return Value

Type: DataReader
The newly created DataReader on success, otherwise .
Remarks

The returned DataReader will be attached and belong to the Subscriber.

The ITopicDescription passed to this operation must have been created from the same DomainParticipant that was used to create this Subscriber. If the ITopicDescription was created from a different DomainParticipant, the operation will fail and return a result.

See Also