Click or drag to resize

SubscriberCreateDataReader Method (ITopicDescription, DataReaderQos, DataReaderListener)

Creates a new DataReader with the desired QoS policies and attaches to it the specified DataReaderListener. The specified DataReaderListener will be attached with the default StatusMask.

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

Parameters

topicDescription
Type: OpenDDSharp.DDSITopicDescription
The ITopicDescription that the DataReader will be associated with.
qos
Type: OpenDDSharp.DDSDataReaderQos
The DataReaderQos policies to be used for creating the new DataReader.
listener
Type: OpenDDSharp.OpenDDS.DCPSDataReaderListener
The DataReaderListener to be attached to the newly created DataReader.

Return Value

Type: DataReader
The newly created DataReader on success, otherwise .
See Also