Good question.

Is it possible to transfer an open port from one rebol scrip to another?

Script A
open a port connection to Script B
tell Script B to open port X
other code
receive port X connection info from Script B
use port X
close port X

Script B
receive port X to open from Script A
open port X
send port X info to Script A

Max


----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, May 07, 2000 2:01 PM
Subject: [REBOL] Multithreaded rebol commands? Re:(2)


>
> I'm new to this so please pardon me if I'm naiive about something, but
> would two scripts be usable?
>
> Script A
> open port
> when port's ready, write file 'ready.txt'
>
> Script B
> if ready.txt exists, do foo
> else do other code
>
> --Ken.
>
> At 11:52 AM 5/7/00 +0200, you wrote:
> >
> >
> >[EMAIL PROTECTED] wrote:
> >
> >> Hi,
> >>
> >> I am wondering if there is a way to "multithread" a rebol command in
the
> >> background.
> >>
> >> For instance I want to open a port connection to another computer and
it
> >> will take a while to open.  I don't want to wait for it to open right
now
> >> and I want to do some other code while I wait.
> >>
> >> open port
> >> other code
> >> check if port is open yet
> >
> >You can't do it yet ...
> >
> >> More questions:  Is there a way to launch another instance of rebol
> within a
> >> rebol script?
> >
> >yes, but only using /command version, which is currently in early beta
> stage ...
> >
> >>  Is it possible to run more that one rebol script
> >> (multithreaded) within one instance of rebol?
> >
> >No, it is not ...
> >
> >-pekr-
> >
> >> Thanks,
> >> Max
> >
> >
>
> ___________________________________ ___________________________________
> Ah, you hate Microsoft too! So comrade, ven do vee plan to defect?
>

Reply via email to