协议:http://nto.github.io/AirPlay.html#introduction
printf如下:
Listening for connections.
data is OPTIONS * RTSP/1.0
CSeq: 0
X-Apple-Device-ID: 0x98fe948d6baa
Apple-Challenge: W+CGHvUg2REPHr4qYam7FQ==
DACP-ID: A3C909026036E4FA
Active-Remote: 3766616117
User-Agent: AirPlay/200.54
data is ANNOUNCE rtsp://fe80::20c:29ff:feb8:7357/11100147477113751381 RTSP/1.0
X-Apple-Client-Name: 姜豆
CSeq: 1
X-Apple-Device-ID: 0x98fe948d6baa
DACP-ID: A3C909026036E4FA
Active-Remote: 3766616117
Content-Type: application/sdp
Content-Length: 664
User-Agent: AirPlay/200.54
v=0
o=AirTunes 11100147477113751381 0 IN IP6 fe80::8a7:5063:ec65:69e0
s=AirTunes
i=姜豆
c=IN IP6 fe80::8a7:5063:ec65:69e0
t=0 0
m=audio 0 RTP/AVP 96
a=rtpmap:96 AppleLossless
a=fmtp:96 352 0 16 40 10 14 2 255 0 0 44100
a
data is SETUP rtsp://fe80::20c:29ff:feb8:7357/11100147477113751381 RTSP/1.0
Transport: RTP/AVP/UDP;unicast;mode=record;timing_port=58018;x-events;control_port=53868
CSeq: 2
X-Apple-Device-ID: 0x98fe948d6baa
DACP-ID: A3C909026036E4FA
Active-Remote: 3766616117
User-Agent: AirPlay/200.54
J/XuTZDGhsatC//dAWBG/maEwoPZcgB71ruGws9w9CRyzU4Jab6T6NZCXUVtUXh5qmgqMml6UUBNj2sBM8XsokE3x63NnkAWKbiNDGtbsbkcAwMRJhJD9A+nhwr/iQPNg2hOyn/HDbtcp2BZefN6B13BPnErZMV2hjZDOVZsbCGBnuWHF0NdozfiH0CKkEJzjvHJ2KQzmBYTXMasBp7H+UkqOxYQsQ0dHwqL9jNp1�
data is RECORD rtsp://fe80::20c:29ff:feb8:7357/11100147477113751381 RTSP/1.0
Range: npt=0-
X-Apple-Durations: b=4; c=8; au=20; an=23; sa=64
CSeq: 3
X-Apple-Device-ID: 0x98fe948d6baa
DACP-ID: A3C909026036E4FA
Active-Remote: 3766616117
User-Agent: AirPlay/200.54
gent: AirPlay/200.54
J/XuTZDGhsatC//dAWBG/maEwoPZcgB71ruGws9w9CRyzU4Jab6T6NZCXUVtUXh5qmgqMml6UUBNj2sBM8XsokE3x63NnkAWKbiNDGtbsbkcAwMRJhJD9A+nhwr/iQPNg2hOyn/HDbtcp2BZefN6B13BPnErZMV2hjZDOVZsbCGBnuWHF0NdozfiH0CKkEJzjvHJ2KQzmBYTXMasBp7H+UkqOxYQsQ0dH
data is SET_PARAMETER rtsp://fe80::20c:29ff:feb8:7357/11100147477113751381 RTSP/1.0
CSeq: 4
X-Apple-Device-ID: 0x98fe948d6baa
DACP-ID: A3C909026036E4FA
Active-Remote: 3766616117
Content-Type: text/parameters
Content-Length: 20
User-Agent: AirPlay/200.54
volume: -23.743719
/200.54
J/XuTZDGhsatC//dAWBG/maEwoPZcgB71ruGws9w9CRyzU4Jab6T6NZCXUVtUXh5qmgqMml6UUBNj2sBM8XsokE3x63NnkAWKbiNDGtbsbkcAwMRJhJD9A+nhwr/iQPNg2hOyn/HDbtcp2BZefN6B13BPnErZMV2hjZDOVZsbCGBnuWHF0NdozfiH0CKkEJzjvHJ2KQzmBYTXMasBp7H+UkqOxYQsQ0dH
data is FLUSH rtsp://fe80::20c:29ff:feb8:7357/11100147477113751381 RTSP/1.0
RTP-Info: seq=11176;rtptime=575674328
CSeq: 5
X-Apple-Device-ID: 0x98fe948d6baa
DACP-ID: A3C909026036E4FA
Active-Remote: 3766616117
User-Agent: AirPlay/200.54
: AirPlay/200.54
volume: -23.743719
/200.54
J/XuTZDGhsatC//dAWBG/maEwoPZcgB71ruGws9w9CRyzU4Jab6T6NZCXUVtUXh5qmgqMml6UUBNj2sBM8XsokE3x63NnkAWKbiNDGtbsbkcAwMRJhJD9A+nhwr/iQPNg2hOyn/HDbtcp2BZefN6B13BPnErZMV2hjZDOVZsbCGBnuWHF0NdozfiH0CKkEJzjvHJ2KQzmBYTXMasBp7H+UkqOxYQsQ0dH
WARNING: requesting resend on 2 packets (2C28:2C29)
data is FLUSH rtsp://fe80::20c:29ff:feb8:7357/11100147477113751381 RTSP/1.0
RTP-Info: seq=11324;rtptime=575728586
CSeq: 6
X-Apple-Device-ID: 0x98fe948d6baa
DACP-ID: A3C909026036E4FA
Active-Remote: 3766616117
User-Agent: AirPlay/200.54
: AirPlay/200.54
volume: -23.743719
/200.54
J/XuTZDGhsatC//dAWBG/maEwoPZcgB71ruGws9w9CRyzU4Jab6T6NZCXUVtUXh5qmgqMml6UUBNj2sBM8XsokE3x63NnkAWKbiNDGtbsbkcAwMRJhJD9A+nhwr/iQPNg2hOyn/HDbtcp2BZefN6B13BPnErZMV2hjZDOVZsbCGBnuWHF0NdozfiH0CKkEJzjvHJ2KQzmBYTXMasBp7H+UkqOxYQsQ0dH
data is OPTIONS * RTSP/1.0
CSeq: 7
X-Apple-Device-ID: 0x98fe948d6baa
DACP-ID: A3C909026036E4FA
Active-Remote: 3766616117
User-Agent: AirPlay/200.54
AirPlay/200.54
026036E4FA
Active-Remote: 3766616117
User-Agent: AirPlay/200.54
: AirPlay/200.54
volume: -23.743719
/200.54
J/XuTZDGhsatC//dAWBG/maEwoPZcgB71ruGws9w9CRyzU4Jab6T6NZCXUVtUXh5qmgqMml6UUBNj2sBM8XsokE3x63NnkAWKbiNDGtbsbkcAwMRJhJD9A+nhwr/iQPNg2hOyn/HDbtcp2BZefN6B13BPnErZMV2hjZDOVZsbCGBnuWHF0NdozfiH0CKkEJzjvHJ2KQzmBYTXMasBp7H+UkqOxYQsQ0dH
data is OPTIONS * RTSP/1.0
CSeq: 8
X-Apple-Device-ID: 0x98fe948d6baa
DACP-ID: A3C909026036E4FA
Active-Remote: 3766616117
User-Agent: AirPlay/200.54
AirPlay/200.54
026036E4FA
Active-Remote: 3766616117
User-Agent: AirPlay/200.54
: AirPlay/200.54
volume: -23.743719
/200.54
J/XuTZDGhsatC//dAWBG/maEwoPZcgB71ruGws9w9CRyzU4Jab6T6NZCXUVtUXh5qmgqMml6UUBNj2sBM8XsokE3x63NnkAWKbiNDGtbsbkcAwMRJhJD9A+nhwr/iQPNg2hOyn/HDbtcp2BZefN6B13BPnErZMV2hjZDOVZsbCGBnuWHF0NdozfiH0CKkEJzjvHJ2KQzmBYTXMasBp7H+UkqOxYQsQ0dH
WARNING: requesting resend on 2 packets (2E13:2E14)
WARNING: requesting resend on 2 packets (2E90:2E91)
data is OPTIONS * RTSP/1.0
CSeq: 9
X-Apple-Device-ID: 0x98fe948d6baa
DACP-ID: A3C909026036E4FA
Active-Remote: 3766616117
User-Agent: AirPlay/200.54
AirPlay/200.54
026036E4FA
Active-Remote: 3766616117
User-Agent: AirPlay/200.54
: AirPlay/200.54
volume: -23.743719
/200.54
J/XuTZDGhsatC//dAWBG/maEwoPZcgB71ruGws9w9CRyzU4Jab6T6NZCXUVtUXh5qmgqMml6UUBNj2sBM8XsokE3x63NnkAWKbiNDGtbsbkcAwMRJhJD9A+nhwr/iQPNg2hOyn/HDbtcp2BZefN6B13BPnErZMV2hjZDOVZsbCGBnuWHF0NdozfiH0CKkEJzjvHJ2KQzmBYTXMasBp7H+UkqOxYQsQ0dH
WARNING: requesting resend on 2 packets (2F10:2F11)
WARNING: requesting resend on 2 packets (2F8D:2F8E)
data is OPTIONS * RTSP/1.0
CSeq: 10
X-Apple-Device-ID: 0x98fe948d6baa
DACP-ID: A3C909026036E4FA
Active-Remote: 3766616117
User-Agent: AirPlay/200.54
AirPlay/200.54
026036E4FA
Active-Remote: 3766616117
User-Agent: AirPlay/200.54
: AirPlay/200.54
volume: -23.743719
/200.54
J/XuTZDGhsatC//dAWBG/maEwoPZcgB71ruGws9w9CRyzU4Jab6T6NZCXUVtUXh5qmgqMml6UUBNj2sBM8XsokE3x63NnkAWKbiNDGtbsbkcAwMRJhJD9A+nhwr/iQPNg2hOyn/HDbtcp2BZefN6B13BPnErZMV2hjZDOVZsbCGBnuWHF0NdozfiH0CKkEJzjvHJ2KQzmBYTXMasBp7H+UkqOxYQsQ0dH
WARNING: requesting resend on 1 packets (2FC3:2FC3)
WARNING: requesting resend on 2 packets (3041:3042)
^CShutting down...
data is x
jiangdou_stop