Calling a livecode executable -ui from LC server and get back a result.

Richard Gaskin ambassador at fourthworld.com
Fri May 5 18:18:30 CEST 2017


Mike Bonner wrote:

 > Is there a specific reason you need to use a built exe for this?  lc
 > server can use stack files (start using path/to/stack) as well as
 > "include"ing or "require"ing extra script files, so unless you're
 > using functionality only available in the desktop version of lc, you
 > might be able to bypass the need to shell to your exe.  This keeps
 > the nice benefit of having instanced runs controlled by a nice solid
 > apache server.

My understanding is that LC Server has no event loop, and libURL needs 
that because all of its HTTP handling is done asynchronously (sync 
operations are emulated with an internal flag), which would require an 
event loop to process.

One option might be to write your own replacement for the portions of 
libURL needed, and I started down this road a while back so I could get 
truly synchronous operations.  However, since web servers are 
increasingly using HTTPS, the overhead of handling TLS was more 
time-consuming than I cared to bother with.

If someone else has time on their hands it might be useful to have such 
a lib, but now that tsNet is in v8+ the use cases for it would seem limited.

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com



More information about the use-livecode mailing list