summaryrefslogtreecommitdiffstats
path: root/README.devel
diff options
context:
space:
mode:
Diffstat (limited to 'README.devel')
-rw-r--r--README.devel50
1 files changed, 0 insertions, 50 deletions
diff --git a/README.devel b/README.devel
deleted file mode 100644
index 727e095..0000000
--- a/README.devel
+++ /dev/null
@@ -1,50 +0,0 @@
1Background
2==========
3
4'libusbmuxd' makes it really simple to talk to a running 'usbmuxd' and
5hides all the details for you. There are two function calls:
6
7usbmuxd_scan()
8--------------
9
10This returns a list of all available iPhone-like devices that are
11available for talking to. The returned array contains the USB
12product_id, hex formatted serial_number of any iPhones/iTouches and a
13non-descript 'handle' for all those devices that are within range (as
14of March 2009, that means a device directly plugged into the
15computer's USB port).
16
17Once you have found the device you want to communicate with, take its
18'handle' and pass this to usbmuxd_connect().
19
20usbmuxd_connect()
21-----------------
22
23This takes a handle, a destination port number and tries to setup
24a proxy a connection. It returns a file-descriptor which you should
25be able to read(), write() and select() on like any other active network
26socket connection.
27
28
29Technical details
30=================
31
32When usbmuxd is running (normally started, or stopped as a result of
33'udev' auto-insertion messages), it provides a socket interface in
34'/var/run/usbmuxd' that is designed to be compatible with the socket
35interface that is provided on MacOSX.
36
37The structures for communicating over this device are documented
38in the 'usbmuxd-proto.h', but you shouldn't need to view them
39directly if you are using the libusbmuxd.so library for easy access.
40
41
42Example
43=======
44
45#include <usbmuxd.h>
46
47...
48
49gcc -o leetphone leetphone.c -lusbmuxd
50