I am writing a simple program that connects a socket to, say google, and then waits for a response. Basically, I am determining the latency of web sites over a 24 hour period. I am doing something wrong because my writes aren't working. I use port 80 and copy GET / http/1.0\r\n\r\n into a buffer and write it to google. My program seems to be sticking in the write process, and I have no ideas if the read will work or not. I am using AF_INET and SOCK_STREAM to create my socket file descriptors. Any ideas?