Posts: 9
Joined: Sep 2016
Reputation:
0
2016-10-25, 14:14
Im doing a program for sending DACP command to control the iphone from my software, I've manage to get the port, ip, dacp id and active remote header of the DACP server which is my phone.
My problem now is to send commands to the server(my phone). I just want to know how do Kodi does it. I tried to parse the exact command format but im getting nowhere. I also tried to open the log and use the format but it didn't work.
Posts: 9
Joined: Sep 2016
Reputation:
0
I saw that and the protocol, I tried to understand the code in the file.Open and file.Write(because I think it is the one that sends the command, am I right about that?) but it is hard for me because when I'm trying to extract the functions used, it just keeps getting bigger and bigger.
Posts: 16,946
Joined: Feb 2011
Reputation:
256
2016-10-26, 07:46
(This post was last modified: 2016-10-26, 07:46 by Memphiz.)
Give me an example with your ids and i tell you what you need to send through the tcp socket
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much:
click here
HowTo setup NFS for Kodi:
NFS (wiki)
HowTo configure avahi (zeroconf):
Avahi_Zeroconf (wiki)
READ THE IOS FAQ!:
iOS FAQ (wiki)
Posts: 1,506
Joined: Nov 2013
maybe this would make it clearer: the file open/write is just http submit. accessing of an url.
Posts: 9
Joined: Sep 2016
Reputation:
0
thanks memphiz!
Can you please tell me if im corret.
Since I know the port and the ip, should i bind it to a tcp socket and write the data you've given to me in that socket?