[REBOL] Re: Listener process
From: greggirwin:mindspring at: 2-Sep-2003 20:33
Hi Ashley,
AT> Any ideas on what the simplest way to implement a local listener process in
AT> REBOL would be? I want to have an [encapped] script that can be started and
AT> then "listens" for incoming requests from other [REBOL] scripts and passes
AT> results back. I could certainly do this via files, but is there a nifty way
AT> of doing it in-memory?
AT> If the answer to this question is simply, "Look at Rugby / Async", then
AT> that alone is worth knowing. ;)
It isn't hard to create a process that listens on a port and
returns data to clients when they connect, but Rugby is a brilliant
absolute-no-brainer if you want to serve up functions for remote
execution. Of course, that means including it in your code, but it's
really terrific stuff.
I'd say try Rugby first. If you decide not to use it, for whatever
reason, you won't have wasted much time, and maybe gained some good
insight in the process.
-- Gregg