2 unstable releases

0.2.0 Nov 17, 2021
0.1.0 Jan 27, 2021

#7 in #tcp-listener

Download history 41/week @ 2024-07-28 9/week @ 2024-08-11 20/week @ 2024-08-18 24/week @ 2024-08-25 36/week @ 2024-09-01 37/week @ 2024-09-08 18/week @ 2024-09-15 64/week @ 2024-09-22 14/week @ 2024-09-29 19/week @ 2024-10-06 19/week @ 2024-10-13 19/week @ 2024-10-20 11/week @ 2024-10-27 49/week @ 2024-11-03 5/week @ 2024-11-10

85 downloads per month

MIT/Apache

27KB
612 lines

Cross-platform PeerTalk Implemented in Rust

This implements the ability to negotiate a network connection over USB to iOS devices via Apple's USB muxer. This can work across platforms assuming iTunes or Apple Mobile Supprot is present. May work with open source usbmuxd/libimobiledevice on linux, but is untested.

Based on PeerTalk by Rasmus Andersson

Usage

This just provides the necessary code for the host (mac/windows) side to detect an iPad/iPhone & negotiate a connection to the device if it's listening.

  1. iOS app sets up a TCP listener on a known port
  2. Host app uses peertalk to wait for device to be plugged in
  3. Upon plug, tell peertalk to establish a connection to the device with the port used in step 1
  4. You'll have a ready to use TcpStream upon success

Status

  • Basic device listen protocol work started
  • macOS/linux UNIX domain socket support
  • Connect (network sockets) support

Dependencies

~4.5MB
~85K SLoC