From 2bba51c66227c77c711b02e5db952d661691e9cb Mon Sep 17 00:00:00 2001 From: "psyc://psyced.org/~lynX" <@> Date: Sat, 23 Jul 2011 17:28:30 +0200 Subject: [PATCH] spawn demo from wiki --- place/spawndemo.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 place/spawndemo.c diff --git a/place/spawndemo.c b/place/spawndemo.c new file mode 100644 index 0000000..362c865 --- /dev/null +++ b/place/spawndemo.c @@ -0,0 +1,23 @@ +// spawn demonstration place as described in +// http://about.psyc.eu/Spawn + +#include + +inherit NET_PATH "spawn"; + +launch(); + +#define NAME "SpawnDemo" +#define CRESET launch(); +#include + +incoming(response) { + castmsg(ME, "_notice_application_listener", response, ([])); +} + +launch() { +#if 0 // make this '1' if you have a listener.sh installed in run + spawn("listener.sh", 0, #'incoming); +#endif +} +