iPad and sockets

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
OpenSpark
Posts: 1
Joined: Fri Jul 27, 2012 7:17 pm

iPad and sockets

Post by OpenSpark » Fri Jul 27, 2012 7:43 pm

Hello everyone!

I am exploring the idea of using LiveCode to create an iPad app to control an external device over WiFi. The app will need to connect to a server on the device, and exchange small packets of data.

I have found this great tutorial on using sockets: bit(dot)ly/MbAi88
(Sorry for the awkward URL, but I haven't gained any brownie points yet, so I can't add a clickable link).

However, all my searches for "LiveCode sockets iPad" have proved fruitless.

Is it possible to use sockets over WiFi from within an iPad app created with LiveCode? Or is this feature not available for deployment on iOS?

Thanks in advance for any insights that you can share,

James

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: iPad and sockets

Post by sturgis » Fri Jul 27, 2012 8:45 pm

lc for ios doesn't have built in socket support yet. You can look at the externals sdk and the example rresockets project and see if it can be made to serve your purposes.
http://www.runrev.com/developers/docume ... rnals-sdk/

Otherwise, you can set up a server to listen for connections and then from the client side use POST or GET to send to and request from the server.
This link is discussing just that.
http://forums.runrev.com/viewtopic.php?f=7&t=12486

Post Reply