esmadja Posted September 24, 2012 Share Posted September 24, 2012 Does anyone have a driver which accepts telnet or http requests. I am hoping to write an iphone app which can be used to control lights and other devices and I am hoping to use direct http calls to a control4 driver to do this.Thanks Link to comment Share on other sites More sharing options...
dogdvr Posted September 24, 2012 Share Posted September 24, 2012 Whats wrong with the other apps that do this? Link to comment Share on other sites More sharing options...
LSDave Posted September 24, 2012 Share Posted September 24, 2012 Whats wrong with the other apps that do this?whats wrong with wanting to play around with programming? Link to comment Share on other sites More sharing options...
LSDave Posted September 24, 2012 Share Posted September 24, 2012 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 More sharing options...
alanchow Posted September 24, 2012 Share Posted September 24, 2012 Ryan has a basic fudged HTTP server sockets driver which works on OS 2.1 and above. Link to comment Share on other sites More sharing options...
esmadja Posted September 24, 2012 Author Share Posted September 24, 2012 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 More sharing options...
esmadja Posted September 24, 2012 Author Share Posted September 24, 2012 Thanks I have already reached out to Ryan to see if he can provide any help.Ryan has a basic fudged HTTP server sockets driver which works on OS 2.1 and above. Link to comment Share on other sites More sharing options...
alanchow Posted September 24, 2012 Share Posted September 24, 2012 Incoming sockets were not introduced in those OS versions Link to comment Share on other sites More sharing options...
RyanE Posted September 24, 2012 Share Posted September 24, 2012 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.