Darren Garvey wrote:
IIUC, the read-write mutex in the current thread lib is broken. The reason it hasn't been fixed is probably because the thread developers have been working on a rewrite of the code base. When that's done, I believe there will be a read-write mutex (here's an old but relevant post: http://permalink.gmane.org/gmane.comp.lib.boost.threads.devel/58) Ahh, ok ...
Check out Boost.Asio. That's what you're looking for. (It won't be in boost 1.34, but it has been accepted) http://asio.sf.net This looks mostly like a TCP socket layer.
We have made one (http://trac.lue.dk/nbpp) that can handle sockets as pure C++ streams, and a URL class that work much like the one in Java, and I was hoping to find something like this in boost, too :-( The library I refer to has many functions also found in boost, but a few that is not, and I was looking for a way to join these two worlds together. Any advise ? /BL