On Oct 30, 4:08*pm, Tomás Ó hÉilidhe <t...@lavabit.comwrote:
>
I've heard something along the lines of "boost" threads being adopted
into the C++ standard, is this true? What's the most portable multi-
threading library for C++ (I'd like my program to be able to run on as
many kinds of machine as possible).
More or less. The current thread support in the draft standard is
inspired on boost.thread but it not the same. About portability, boost
thread works on many Windows variant and on most platforms that
support pthreads. Otherwise you could just program on top of pthreads.
Pthread implementations for windows do exist.
Another thing: Can anyone suggest what's the most portable networking
library for sending and receiving raw Ethernet frame? In the world of
C, "Berkeley Sockets" seems to be the main one. What about C++, what's
the best networking library to use if you're looking to maximise
portability? (Remember that I need to be able to send and receive full
Ethernet frames).
Boost.Asio, which is based on Berkeley Sockets, simplifies synchronous
or asychronous network programming. I'm fairly sure it support raw
sockets. Failing that you can also try ACE or straight Berkeley
Sockets.
--
Giovanni P. Deretta