Click or drag to resize

DomainParticipantCreateSubscriber Method (SubscriberQos, SubscriberListener)

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

Namespace:  OpenDDSharp.DDS
Assembly:  OpenDDSharp (in OpenDDSharp.dll) Version: 0.5.0.0
Syntax
public Subscriber CreateSubscriber(
	SubscriberQos qos,
	SubscriberListener listener
)

Parameters

qos
Type: OpenDDSharp.DDSSubscriberQos
The SubscriberQos policies to be used for creating the new Subscriber.
listener
Type: OpenDDSharp.DDSSubscriberListener
The SubscriberListener to be attached to the newly created Subscriber.

Return Value

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

The created Subscriber belongs to the DomainParticipant that is its factory.

If the specified QoS policies are not consistent, the operation will fail and no Subscriber will be created.

See Also