LWIP SOCKET How can server tell if Client disconnected without "warning"? Server on MCU (STM32F429ZIT6, custom board), Client application on Windows I spent two days trying to figure a solution to this problem. Here is my solution, what do you think?
in main.c int connectionClosed = 0; ... Setup routine of socket ... while(1){ sin_size = sizeof(struct sockaddr_in); new_socket = lwip_accept(s_create, (struct sockaddr *)&client_addr, &sin_size); if (new_socket > 0){ msgSize = sprin...