peertalk

Crates.iopeertalk
lib.rspeertalk
version0.2.0
sourcesrc
created_at2021-01-27 20:06:32.589767
updated_at2021-11-17 17:22:09.220778
descriptionLibrary for communicating with an iPad or iPhone over USB
homepage
repositoryhttps://github.com/AstroHQ/peertalk-rs
max_upload_size
id347461
size55,370
Jesús Trinidad Díaz Ramírez (jesdazrez)

documentation

README

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
Commit count: 22

cargo fmt