osx - How does Apple's "DVD or CD Sharing" protocol work? -
macs have "dvd or cd sharing" service remote access optical drives. (apple provides windows software implements sharing half only, no reading.) want use service linux, read optical disk on mac. can't find software or information protocol. thought document i've found here, , see others can figure out.
my friend enabled "dvd or cd sharing" on mac. can see service via zeroconf (using avahi). notably:
service type: _odisk._tcp address: <hostname>.local/192.168.1.115:49152
searching "_odisk._tcp", found mention in "mac hacker's handbook". can find on pages 69 , 70. don't have book, used amazon's preview. shows examples of http-based protocol.
however, can't make successful request. first time tried "get /" on port given zeroconf, got "401 unauthorized". asked friend turn off security. then, "get /" returned "404 not found". tried path first listing in book, "get /ods-ask-status?askid=2", , got "406 not acceptable". know i'm on something. however, can't past 406. have been entering http requests directly (with nc), , tried in trace in book (only changing host), entering sorts of accept: , accept-*: headers. since trace in amazon preview hard read, have tried other interpretations. no luck. (if has book, maybe can type listing.)
there no other documentation protocol can find. @ point, should 2 computers using dvd or cd sharing , sniff them, hard me set right now. i'm offering problem here. maybe can famous writing open source implementation of protocol. ;-)
there server implementation available on github, seems server side of job: https://github.com/dgwynne/odsserver
the protocol seems based on http range requests access disk image; however, seems require particular user-agent: headers work (yuck!)
Comments
Post a Comment