copy files for raw socket