Title: 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/)
======================================================================

Reply via email to