Update socket.c