added socket.c and client.c
added socket.c and client.c