update con_socket.c