Another nice read - ftp://ftp.ti.com/pub/data_acquisition/MSC_CD-ROM/C_Programming/Embedded_C_Traps_and_Pitfalls.pdf -
the forum adds http:// automatically to the link , sorryftp://ftp.ti.com/pub/data_acquisition/MSC_CD-ROM/C_Programming/Embedded_C_Traps_and_Pitfalls.pdfthis might work better
The server at ftp can't be found, because the DNS lookup failed. DNS is the network service that translates a website's name to its Internet address. This error is most often caused by having no connection to the Internet or a misconfigured network. It can also be caused by an unresponsive DNS server or a firewall preventing Google Chrome from accessing the network.
Good and interesting analysis Pyro!Still imho mixing datatypes (int and bool(ean)) is always tricky. With comparing integer with booleans we loose "significant truth" bits.similar as loosing significant digits when converting long to float and or vice versa.So in the end the programmer is responsible to know the limits of a language(see book safer C from Les Hatton)
Note that a client is considered connected if the connection has been closed but there is still unread data.