JSON over raw TCP or HTTP

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
BasJaspers Offline
Junior Member
Posts: 17
Joined: May 2016
Reputation: 0
Post: #1
At the moment I am using a raw TCP socked to communicate trough JSON to control Kodi.
I am noticing that at some point to RAW socket get's broken and I can't communicate any more, even when I close the socked and open it again I can't get it up and running.
But when using HTTP command's to control Kodi I can still control it.

So the question is: Is there a difference between war TCP control and HTTP control? So would it be worth it to rewrite my code to HTTP control?

I am using Kodi 17.2
(This post was last modified: 2017-06-24 11:50 by BasJaspers.)
find quote
GreySkies Offline
Junior Member
Posts: 41
Joined: Jul 2015
Reputation: 2
Post: #2
I've never used JSON over TCP, so I may be off-base, but could your socket be timing out? When I open a socket, I send my command, get my response, then close the socket, every time.
find quote