Click or drag to resize

DomainParticipantCreateSubscriber Method (SubscriberQos, SubscriberListener, StatusMask)

Creates a new Subscriber with the desired QoS policies and attaches to it the specified PublisherListener.

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

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.
statusMask
Type: OpenDDSharp.DDSStatusMask
The StatusMask of which status changes the listener should be notified.

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