mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 14:36:16 +01:00
Write new XPC implementation
This commit is contained in:
@@ -96,7 +96,7 @@ async fn main() {
|
||||
println!("rsd port: {}", tun_proxy.handshake.server_rsd_port);
|
||||
println!("-----------------------------");
|
||||
|
||||
let mut buf = vec![0; 1500];
|
||||
let mut buf = vec![0; 20_000]; // XPC is big lol
|
||||
loop {
|
||||
tokio::select! {
|
||||
Ok(len) = async_dev.recv(&mut buf) => {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Print out all the RemoteXPC services
|
||||
|
||||
use clap::{Arg, Command};
|
||||
use idevice::{core_device_proxy::CoreDeviceProxy, xpc::XPCDevice, IdeviceService};
|
||||
use idevice::{core_device_proxy::CoreDeviceProxy, xpc::RemoteXpcClient, IdeviceService};
|
||||
|
||||
mod common;
|
||||
|
||||
@@ -66,7 +66,7 @@ async fn main() {
|
||||
adapter.connect(rsd_port).await.expect("no RSD connect");
|
||||
|
||||
// Make the connection to RemoteXPC
|
||||
let client = XPCDevice::new(Box::new(adapter)).await.unwrap();
|
||||
let mut client = RemoteXpcClient::new(Box::new(adapter)).await.unwrap();
|
||||
|
||||
println!("{:#?}", client.services);
|
||||
println!("{:#?}", client.do_handshake().await);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user