Hi,
I'm using a Socket Object in Network Library v1.01.
I can set up successfully a connection to a server.
Problem is that when the connection is broken afterwards, ie connection status is going from connected to unconnected again, ( eg Server process stopped, WIFI interruption) the socket.connected parameter stays True.
The idea is that with help of a timer I can test the "status" of the connection. If the connection would be broken, trying to reconnect...
The closest I got, was using a AsyncStream and sending a "Ping-Pong" command. The AsyncStream would throw an exception if the connection is broken. Problem is that I can't set up the same connection anymore.
I tried to close the broken connection first, to set a new initialize method.
The weird thing is that the socket report back the same old status.
Anyway in short...
Could the "connected" property be changed that it report the actual status ?
or could we have a new event reporting a change in connections status ?
Regards,
Wim
I'm using a Socket Object in Network Library v1.01.
I can set up successfully a connection to a server.
Problem is that when the connection is broken afterwards, ie connection status is going from connected to unconnected again, ( eg Server process stopped, WIFI interruption) the socket.connected parameter stays True.
The idea is that with help of a timer I can test the "status" of the connection. If the connection would be broken, trying to reconnect...
The closest I got, was using a AsyncStream and sending a "Ping-Pong" command. The AsyncStream would throw an exception if the connection is broken. Problem is that I can't set up the same connection anymore.
I tried to close the broken connection first, to set a new initialize method.
The weird thing is that the socket report back the same old status.
Anyway in short...
Could the "connected" property be changed that it report the actual status ?
or could we have a new event reporting a change in connections status ?
Regards,
Wim