Add supported flags to the README
[deb_shairplay.git] / README.md
1 Shairplay
2 =========
3 Free portable AirPlay server implementation similar to [ShairPort](https://github.com/abrasive/shairport).
4
5 Currently only AirPort Express emulation is supported.
6
7 Disclaimer
8 ----------
9 All the resources in this repository are written using only freely available
10 information from the internet. The code and related resources are meant for
11 educational purposes only. It is the responsibility of the user to make sure
12 all local laws are adhered to.
13
14 Installation
15 ------------
16
17 ```
18 ./configure
19 make
20 sudo make install
21 ```
22
23 Notice that libao is required in order to install the shairplay binary,
24 otherwise only the library is compiled and installed.
25
26 Usage
27 -----
28
29 Check available options with ```shairplay --help```:
30
31 ```
32 Usage: shairplay [OPTION...]
33
34 -a, --apname=AirPort Sets Airport name
35 -p, --password=secret Sets password
36 -o, --server_port=5000 Sets port for RAOP service
37 --ao_driver=driver Sets the ao driver (optional)
38 --ao_devicename=devicename Sets the ao device name (optional)
39 --ao_deviceid=id Sets the ao device id (optional)
40 -h, --help This help
41 ```
42
43 Start the server with ```shairplay```, if you are connected to a Wi-Fi the
44 server should show as an AirPort Express on your iOS devices and Mac OS X
45 computers in the same network.
46
47 Related software
48 ----------------
49
50 * [ShairPort](https://github.com/abrasive/shairport), original AirPort Express emulator
51 * [ALAC](http://craz.net/programs/itunes/alac.html), ALAC decoder by David Hammerton
52
53 Description
54 -----------
55
56 Short description about what each file in the main library does:
57
58 ```
59 src/lib/base64.* - base64 encoder/decoder
60 src/lib/dnssd.* - dnssd helper functions
61 src/lib/http_parser.* - HTTP parser from joyent (nginx fork)
62 src/lib/http_request.* - Request parser that uses http_parser
63 src/lib/http_response.* - Extremely simple HTTP response serializer
64 src/lib/httpd.* - Generic HTTP/RTSP server
65 src/lib/logger.* - Logging related functions
66 src/lib/netutils.* - Mostly socket related code
67 src/lib/raop.* - Main RAOP handler, handles all RTSP stuff
68 src/lib/raop_rtp.* - Handles the RAOP RTP related stuff (UDP/TCP)
69 src/lib/raop_buffer.* - Parses and buffers RAOP packets, resend logic here
70 src/lib/rsakey.* - Decrypts and parses the RSA key to bigints
71 src/lib/rsapem.* - Converts the RSA PEM key to DER encoded bytes
72 src/lib/sdp.* - Extremely simple RAOP specific SDP parser
73 src/lib/utils.* - Utils for reading a file and handling strings
74 ```
75
76 Short description about what each file in the Qt application does:
77
78 ```
79 AirTV-Qt/main.cpp - Initializes the application
80 AirTV-Qt/mainapplication.cpp - Creates the tray icon and starts RAOP
81 AirTV-Qt/raopservice.cpp - Handles all communication with the library
82 AirTV-Qt/raopcallbackhandler.cpp - Converts C callbacks to Qt callbacks
83 AirTV-Qt/audiooutput.cpp - Takes care of the actual audio output
84 ```
85