J jo1234 Active Member Licensed User Longtime User Oct 29, 2014 #1 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
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 Oct 29, 2014 #2 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
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 ?
Erel B4X founder Staff member Licensed User Longtime User Oct 30, 2014 #3 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. aaronk said: What does the timeout parameter mean ? Click to expand... It means that the connection process will fail after x milliseconds if the connection was not established. Upvote 0
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. aaronk said: What does the timeout parameter mean ? Click to expand... It means that the connection process will fail after x milliseconds if the connection was not established.