question

Upvotes
Accepted
5 2 3 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 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
32.2k 40 11 20

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 512.0 KiB each and 1.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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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