scd: Implement socket redirection.