2010-07-17, 11:22
Yeah, terribly sorry but I have been silly busy with other things (GSoC mostly) but I will return and do much more on the jsonrpc at some point, probably this fall.
Regarding File.Download, it just takes a string as parameter not a string array. (Not sure if this is outside jsonrpc spec. :S).
But as Tolriq said, this method will just tell you how to download and with the http server its already extremely standardized how it handles it but on the RAW TCP socket it might need to open up a new port for the transfer (like ftp) so those other transports might need to be poked before the download could be initialized, so its mostly a way of future proofing the solution.
Cheers,
Tobias
Regarding File.Download, it just takes a string as parameter not a string array. (Not sure if this is outside jsonrpc spec. :S).
Code:
"{ jsonrpc":"2.0", "method":"Files.Download","params": "special://masterprofile/Thumbnails/Music/c/cf23dc2e.tbn", "id":1 }
But as Tolriq said, this method will just tell you how to download and with the http server its already extremely standardized how it handles it but on the RAW TCP socket it might need to open up a new port for the transfer (like ftp) so those other transports might need to be poked before the download could be initialized, so its mostly a way of future proofing the solution.
Cheers,
Tobias