Jump to content
C4 Forums | Control4

Send command to driver using telnet or http


esmadja

Recommended Posts


I've worked with the xmbc driver and now have a working Roku XS IP driver.

But what I am looking to do now wouldn't go through a standard proxy i.e. I would not be using a remote or the C4 ipad app to send commands.

Instead I want the driver to be able to accept any TCP (or HTTP) traffic on a specific port using a specific application protocol.

I also would like this to be backwards compatible to 1.8 maybe even 1.7.

And esmadja, There are plenty of drivers that send what your looking for. You could start with one of those and turn it into a 2 way driver.
Link to comment
Share on other sites

esmadja,

I don't have a lot of help for you, except to say that what Alan has said is correct.

It's pretty much impossible to implement server socket functionality before 2.x, when it was introduced.

And, in 2.x, the commands are pretty straightforward, but I don't have a sample I can offer.

C4:CreateServer(nPort)

function OnServerConnectionStatusChanged(nHandle, nPort, strStatus)

function OnServerDataIn(nHandle, strData)

C4:ServerSend(nHandle, strData)

C4:ServerCloseClient(nHandle)

C4:DestroyServer()

RyanE

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.