How to configure the DataReader (or a DataWriter) to receive data in a different port

2 posts / 0 new
Last post
Offline
Last seen: 7 years 11 months ago
Joined: 04/28/2016
Posts: 1
How to configure the DataReader (or a DataWriter) to receive data in a different port

By default, all the DataReaders and Datawriters under one domain receive data on the same port.

How to configure  the DataReader (or a DataWriter)  to receive data in a different port, different socket.

thank you in advance

 
Keywords:
Gerardo Pardo's picture
Offline
Last seen: 3 weeks 1 day ago
Joined: 06/02/2010
Posts: 601

Hi,

You can configure the unicast port used by ac DataReader to receive data using the TRANSPORT_UNICAST Qos Policy of the DDS DataReader. That same Qos Policy on the DataWriter can be used to configure the port where the DataWriter receives ACKs/NACKs.  You can find the documentation for the TransportUnicastQosPolicy here.

In addition you can control the multicast port (and address) used by a DataReader via the TrasportMulticastQosPolicy DataReader Qos Policy

Gerardo