From 000c99126db23bbe5467c2f5f7fcfaf05b343d82 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Thu, 7 Apr 2011 15:15:57 +0200 Subject: Implement server-info request of iOS 4.3 --- AirPlayService.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/AirPlayService.py b/AirPlayService.py index 5525712..be3eeb0 100644 --- a/AirPlayService.py +++ b/AirPlayService.py @@ -119,6 +119,26 @@ class AirPlayProtocolHandler(asyncore.dispatcher_with_send): elif (request.type == 'PUT' and request.uri.find('/photo')>-1): self.photo(request.body, request.headers['X-Apple-Transition']) answer = self.create_request() + elif (request.type == 'GET' and request.uri.find('/server-info')>-1): + self.server_info() + content = '\ +\ +\ +\ +deviceid\ +%s\ +features\ +%d\ +model\ +%s\ +protovers\ +1.0\ +srcvers\ +101.10\ +\ +' + content = content % (self.service.deviceid, self.service.features, self.service.model) + answer = self.create_request(200, "Content-Type: text/x-apple-plist+xml", content) else: print "ERROR: AirPlay - Unable to handle request \"%s\"" % (request.uri) answer = self.create_request(404) -- cgit v1.1-32-gdbae