Learning to use C Sockets