question

Upvotes
Accepted
5 1 1 5

Host name resolved too often

Hi all,

we are using /Elektron-SDK1.2.2.linux.rrg/Cpp-C/Eta to post messages to TRCC.

Each time sending a message "rsslHostByName" is called from the eta-library

to resolve the IP adress of the local host - propably within

"rsslTunnelStreamSubmit".

That is quiet a performance issue. Can I turn that feature off?

And why is it necessary to call that function thousand times a second?

Yours

Thomas

elektronrefinitiv-realtimeelektron-sdkrrteta-apielektron-transport-apircc-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
23k 22 9 14

Hello @Thomas Wolf,

Just a double-check, have you copied the post encode from an example, are you sure you are not calling rsslHostByName from encode, in order to obtain the IP address, as the example does:

...
rsslHostByName(&hostNameBuf, &ipAddrUInt32);
postMsg.postUserInfo.postUserAddr = ipAddrUInt32;
...

?

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Ups - I have overseen that completly!!

But good for me, for I can easily replace that call.

Sorry I have bothered you. And thanks for your attention.

Click below to post an Idea Post Idea