Managing Multiple Connections
Managing Multiple Connections
- Subject: Managing Multiple Connections
- From: Dietrich Epp <email@hidden>
- Date: Wed, 21 May 2003 01:05:43 -0700
What is a good way to manage multiple connections (OSX)? Most of my
documentation is UNIX-specific, and my first thought was to create a
thread that manages all connections using the select(2) system call.
Unfortunately, this means that communication with the thread must
either be done using a timeout (ick), signals (double ick), or file
descriptors (ick squared). My second thought is to create a thread for
each connection, but this seems excessive.
I'm sure this situation is relatively common (e.g. downloading things
in a web browser) and I'm probably making things more complicated than
they should be.
Is there some good technique I'm missing? It would be great if it were
cross-platform, but OSX-specific is good too.
--Dietrich
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.