Sockets programming and threading

new topic     » topic index » view thread      » older message » newer message

Hi everyone,

I am writing a wrapper for Tcp4u (a cross platform sockets library) and I
have a fair amount done .... BUT ... I have come across a problem.

All of the c/c++ examples of server programs that can accept multiple
clients do it by the use of threads.

Basically one thread is always doing an accept (waiting for a connection),
and when a connection is made it is passed to another thread ... so the
original thread can go on waiting to see if more clients wants to connect.

I have no idea how to simulate this in Euphoria and since it is single
threaded.

Has anyone come across this before or have any ideas?

I have the first windows version of euTcp4u almost complete,  just finishing
the doco and making some more example programs (that's when I got stuck with
my problem!).

Thanks

Ray Smith.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu