diff --git a/Cargo.toml b/Cargo.toml index a8635a1..1d3ee9d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,7 +28,7 @@ path = "src/tools/mounter.rs" required-features = ["sha2", "ureq"] [dependencies] -tokio = { version = "1.43", features = ["io-util", "macros", "time"] } +tokio = { version = "1.43", features = ["io-util", "macros", "time", "full"] } tokio-openssl = { version = "0.6" } plist = { version = "1.7" } serde = { version = "1", features = ["derive"] } diff --git a/src/core_device_proxy.rs b/src/core_device_proxy.rs new file mode 100644 index 0000000..b93bb47 --- /dev/null +++ b/src/core_device_proxy.rs @@ -0,0 +1,13 @@ +// Jackson Coxson + +use crate::{Idevice, IdeviceError}; + +pub struct CoreDeviceProxy { + pub idevice: Idevice, +} + +impl CoreDeviceProxy { + pub fn new(idevice: Idevice) -> Self { + Self { idevice } + } +} diff --git a/src/lib.rs b/src/lib.rs index c096f56..f819740 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,6 @@ // Jackson Coxson +pub mod core_device_proxy; pub mod heartbeat; pub mod http2; pub mod installation_proxy; diff --git a/src/xpc/mod.rs b/src/xpc/mod.rs index 05e4b48..c32eb6e 100644 --- a/src/xpc/mod.rs +++ b/src/xpc/mod.rs @@ -147,4 +147,20 @@ mod tests { .unwrap(); println!("ayo: {:?}", data); } + + #[tokio::test] + async fn huh() { + let mut client = XPCConnection::new(Box::new( + TcpStream::connect(("10.7.0.2", 58783)).await.unwrap(), + )) + .await + .unwrap(); + + let data = client + .read_message(http2::Connection::ROOT_CHANNEL) + .await + .unwrap(); + + println!("{data:?}"); + } }