You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm using your code in a program where the server address and port may be provided externally, and with 1.0 I could change the UTurboLinkGrpcConfig structure easily and it would connect to the server and port provided by other means than through the settings.
In 1.1 you declared the functions retrieving this structure as const, which now means that I have to const_cast<UTurboLinkGrpcConfig*> to remove the constness and change the value.
This is not really a problem for me, but I thought you might want to know that not all usages of your code relies on the specific project settings/ default INI for server and port as your code assumes, and you maybe want to introduce a controlled means of changing it through code if you have plans relying on the constness of the config :)
The text was updated successfully, but these errors were encountered:
Thank you for your suggestion. Indeed, when I designed this library, it was based on an assumption that the content in config is read-only in the code and blueprint. Users need to edit it through the setting ui.
Thanks for considering it in the future!
Just to give some context, in my case the endpoint address is actually coming through a redirect from a CMS system to a dedicated server for a certain stream on AWS. So it can never be set up through settings as the server address as the instance is created somewhat dynamically.
Another potential use-case (although not for me), is when the address is needed to be set through an in-game UI...
I'm sorry because I can only invest a relatively small amount of time in this plugin, so the reply is slow. I just upgraded the libraries to a new version. I will consider your needs next. Thank you for your advice.
Hi,
I'm using your code in a program where the server address and port may be provided externally, and with 1.0 I could change the UTurboLinkGrpcConfig structure easily and it would connect to the server and port provided by other means than through the settings.
In 1.1 you declared the functions retrieving this structure as const, which now means that I have to const_cast<UTurboLinkGrpcConfig*> to remove the constness and change the value.
This is not really a problem for me, but I thought you might want to know that not all usages of your code relies on the specific project settings/ default INI for server and port as your code assumes, and you maybe want to introduce a controlled means of changing it through code if you have plans relying on the constness of the config :)
The text was updated successfully, but these errors were encountered: