Socket Programming examples in C