LC Server & Server Based Stack?

Mike Bonner bonnmike at gmail.com
Sun Jan 22 16:56:41 EST 2017


What richard said.  Instead of the clipboard (which I suspect doesn't work
because the lc server engine is not running in the same shell instance)
 The idea of using a file as an intermediary storage container would work,
but sockets would be so much better.   (Since this will be same machine
sockets, you might read up on named sockets too... IE sockets tagged by a
unique identifier like the seconds or something of that nature.  Otherwise
(I think) if the server is hit twice quickly, the second socket opening
will fail because its blocked by the first.  Named sockets gets around this
porblem)

On Sun, Jan 22, 2017 at 2:05 PM, Richard Gaskin via use-livecode <
use-livecode at lists.runrev.com> wrote:

> Rick Harrison wrote:
>
> > Ok, so the server and my open LC stack are using
> > different engines or are different “instances”.  If they
> > are on the same computer it seems to me that one
> > might be able to get the two to talk to each other
> > through the computer system’s clipboard in theory.
> >
> > I haven’t had much luck with getting the contents
> > of a variable into the clipboard on the server side
> > yet.  It keeps throwing weird errors at me.
> > Can you think of an easy way to do that?
>
> The clipboard is a good mechanism for an end-user to exchange data
> between GUI programs.
>
> For programs to exchange data between themselves without a GUI, you'll
> want to use sockets.
>
> This tutorial is the best entry-point for learning sockets I've found yet:
>
> <http://lessons.livecode.com/m/4071/l/12924-how-to-communicate-with-other-
> applications-using-sockets>
>
> --
>  Richard Gaskin
>  Fourth World Systems
>  Software Design and Development for the Desktop, Mobile, and the Web
>  ____________________________________________________________________
>  Ambassador at FourthWorld.com                http://www.FourthWorld.com
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list