Update sockets.c