Protocol Specification

May there be any specifications of the protocol of the Android Server? I am trying to run this in linux, headless raspberry pi, so the client here is no use here, what i’d like to do is to get the protocol’s specs to make an python client which would work on any architecture and on headless, in fact i did manage to decode a discovery packet with wireshark and then python