PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → [WM20] SocketConnect acts strange on Android ?
[WM20] SocketConnect acts strange on Android ?
Débuté par Danny Lauwers, 02 juil. 2015 23:49 - Aucune réponse
Posté le 02 juillet 2015 - 23:49
Hi,

I have some communications between a server and a WinDev Mobile 20 Android application via TCP (Socketxxxx functions). When the wifi is connected and server is running then the SocketConnect("MySocket,Myport,5000) will not generate an error and the SocketWrite also runs correctly.

But when the Wifi is down (no connection to the server), then the SocketConnect also seems to return a true (successful connection) instead of returning an error ?? Also the ErrorOccurred flag is not set and no Exception is thrown !

It is the first SocketWrite that would generate an error.

This lets my connection status go on/off/on/off...

In the simulator, all runs as expected including the error for the SocketConnect !!

Does anybody had the same effect with SocketConnect ?

Thanks
Danny