Click or drag to resize

DomainParticipantCreatePublisher Method (PublisherQos, PublisherListener)

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

Namespace:  OpenDDSharp.DDS
Assembly:  OpenDDSharp (in OpenDDSharp.dll) Version: 0.5.0.0
Syntax
public Publisher CreatePublisher(
	PublisherQos qos,
	PublisherListener listener
)

Parameters

qos
Type: OpenDDSharp.DDSPublisherQos
The PublisherQos policies to be used for creating the new Publisher.
listener
Type: OpenDDSharp.DDSPublisherListener
The PublisherListener to be attached to the newly created Publisher.

Return Value

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

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

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

See Also