----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 19, 2000 6:55 PM
Subject: [REBOL] using tcp:// with an unknown port


> I am not able to locate anything in regards to how to make Rebol open a
> port with no known number.
>
> For example, we have a known port:  my-conn: open/lines tcp://:4321
>
> So far, so good, but, how do we do this with an unknown port number? In C,
> we just call socket(), bind(), then listen() on our socket and the stack
> will have a port allocated in this process for us.
>
> Regards,
> Deryk
>
>
Hi Deryk,

Not sure if this is what you mean or not..

If no port-id is specified, an available port will be allocated
(This example works in Rebol/View)

my-conn: open tcp://
my-conn/port-id
==2664
>> my-conn2: open/lines tcp://
>> my-conn2/port-id
== 2665

Cheers,

Allen K



Reply via email to