read_sock