Hi all
Im developing an app that creates a socket connection to a server and then writes to that connection. What I need to know is how to detect an error AFTER the connection is established when trying to write to the socket. I am using a lib downloaded off the web, and it uses fsocketopen to open the socket and fwrite whenever a packet is being sent. fwrite returns FALSE if there is an error or the number of bytes written.
The problem is I have a program that connects, sends a message, sleeps for 20 seconds, and then writes another message. I kill the server during the 20 seconds, but I get no error on the second fwrite.
Any insight would be greatly appreciated....
Thanx in advance.