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

2 posts / 0 new
Last post
Offline
Last seen: 3 years 4 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 5 days ago
Joined: 06/02/2010
Posts: 588

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