Hi Joachim,
 
I think you want the code from multisession.r on rebol.org. Thank you Alfred
Pang for this script!
 
- Michael Jelinek

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 04, 2000 6:55 AM
To: [EMAIL PROTECTED]
Subject: [REBOL] Port question



If I create a port ("server-port: open tcp://:1111"), is there any way 
of making it non-blocking? If there is, can that method also be used to 
make the connected "clients" non-blocking? 

I would like to do something like the following (pseudo code), but it 
won't work unless the ports are non-blocking: 

server-port: open tcp://:1111 
forever [ 
    if (server-port have a connection) [ 
        client-port: first server-port 
        (append client-port to a client-list) 
    ] 

    foreach client client-list [ 
        if (have input on client) [ 
            (read and process data from client) 
        ] 
    ] 
] 


Maybe someone have a better solution? 

/ Joachim 
====================================================================== 
Joachim Pileborg                        EMail: [EMAIL PROTECTED] 
Software Engineer                       FMT AB  ( http://www.fmt.se/
<http://www.fmt.se/> ) 
====================================================================== 

Reply via email to