mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 06:26:15 +01:00
Move xpc library to mods
This commit is contained in:
@@ -28,7 +28,7 @@ path = "src/tools/mounter.rs"
|
|||||||
required-features = ["sha2", "ureq"]
|
required-features = ["sha2", "ureq"]
|
||||||
|
|
||||||
[dependencies]
|
[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" }
|
tokio-openssl = { version = "0.6" }
|
||||||
plist = { version = "1.7" }
|
plist = { version = "1.7" }
|
||||||
serde = { version = "1", features = ["derive"] }
|
serde = { version = "1", features = ["derive"] }
|
||||||
|
|||||||
13
src/core_device_proxy.rs
Normal file
13
src/core_device_proxy.rs
Normal file
@@ -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 }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
// Jackson Coxson
|
// Jackson Coxson
|
||||||
|
|
||||||
|
pub mod core_device_proxy;
|
||||||
pub mod heartbeat;
|
pub mod heartbeat;
|
||||||
pub mod http2;
|
pub mod http2;
|
||||||
pub mod installation_proxy;
|
pub mod installation_proxy;
|
||||||
|
|||||||
@@ -147,4 +147,20 @@ mod tests {
|
|||||||
.unwrap();
|
.unwrap();
|
||||||
println!("ayo: {:?}", data);
|
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:?}");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user