From 21584f4190c86eb3fb40bb16399aee6bb711fa71 Mon Sep 17 00:00:00 2001 From: Jackson Coxson Date: Wed, 6 Aug 2025 15:40:21 -0600 Subject: [PATCH] Add a method to extract the socket from the device --- idevice/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/idevice/src/lib.rs b/idevice/src/lib.rs index 23affd7..76a3034 100644 --- a/idevice/src/lib.rs +++ b/idevice/src/lib.rs @@ -116,6 +116,10 @@ impl Idevice { } } + pub fn get_socket(self) -> Option> { + self.socket + } + /// Queries the device type /// /// Sends a QueryType request and parses the response