how to capture address of publisher at subscriber's side in c++

2 posts / 0 new
Last post
Offline
Last seen: 3 years 11 months ago
Joined: 03/12/2020
Posts: 3
how to capture address of publisher at subscriber's side in c++

in rt5, i used to print ip of adddress publisher like this:

//in on_data_available function

DDS_SampleInfoSeq info_seq;

//inside for loop printing ipaddreess

 

info_seq[i].publication_vitual_guid.value[0];

info_seq[i].publication_vitual_guid.value[1];

.

.

info_seq[i].publication_vitual_guid.value[12];

 

but in rti6, it is giving some different values in hexadecimal format, not ip address.

how can i print ip address in rti6 in c++

kindly provide source code. i am new to programming

Offline
Last seen: 3 years 11 months ago
Joined: 03/12/2020
Posts: 3

can anyone help me?