iOS Question socket.connect timeout parameter is inconsistent between B4A and B4i

jo1234

Active Member
Licensed User
Longtime User
Hi Erel,

the socket.connect timeout parameter is inconsistent between B4A and B4i.
In B4A it is in milliseconds, in B4i in seconds.

Please use milliseconds in both languages to avoid problems when code is copied from one language to the other.

Thanks
John
 

aaronk

Well-Known Member
Licensed User
Longtime User
What does the timeout parameter mean ?
Does it mean it will timeout if it couldn't connect within that time or mean the connection will only stay open/active for the time set in the timeout parameter ?
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
It is a bug. It should have been milliseconds (as written in the documentation).
I've uploaded a new library to the builder. Please try it again.

What does the timeout parameter mean ?
It means that the connection process will fail after x milliseconds if the connection was not established.
 
Upvote 0
Top