TurboFloatServer port numberSolved

Hi, one question and one bug report here:

Q: Is there any recommendation for port numbers for TurboFloatServer or do we just leave this entirely up to the customer?

Bug: I found that setting a port number higher than 32767 causes both TF_GetServer and TF_RequestLease to terminate the application. I suspect the port number should be an "unsigned" int.

Regards,Robin

This was with TFS 3.5.6

Q: Is there any recommendation for port numbers for TurboFloatServer or do we just leave this entirely up to the customer?

The customer can use anything they want. It's entirely configurable & up to them.

Bug: I found that setting a port number higher than 32767 causes both TF_GetServer and TF_RequestLease to terminate the application. I suspect the port number should be an "unsigned" int.

That shouldn't happen. What language are you using?

Embarcadero C++ Builder XE3.

Wait ... you can't do it ... the parameter is a "short" int, two bytes, so if you go above 32767 it will overflow and go negative! As I said before, I think it needs "unsigned short" there.

You're right, this is a bug. We've fixed it for the next version. Thanks for reporting this.

We've fixed this in TurboFloat 4.0, out now. Get it on your API page: https://wyday.com/limelm/api/#turbofloat