Using sockets, I am not sure how to set the timeout?
thanks
int sock, connected, bytes_recieved; char send_data [128] , recv_data[128]; SOCKAD
You need to use setsockopt to set the SO_SNDTIMEO and/or SO_RCVTIMEO options.
SO_SNDTIMEO
SO_RCVTIMEO