Socket status when client gets disconnected



Here in Zerynth code

client,addr = sock.accept()

I am in need to know the status of the client after gets disconnected.

Like here in Arduino code of WifiClient example

while (client.available()) {
char c =;

How to get that…

Thanks in advance.



Anyone have the solution to the topic I mentioned earlier

please give me a solution


Hi @Boda_Dinesh_reddy,

checking if the client is disconnected does not assure you that desired state is kept on a subsequent read call, so what I suggest you is to try perform your reading and catch exceptions that might arise from a disconnected client.

Let me know if this helps you :slight_smile:


This gonna help me but is there any other way of watching over the status flags to do this