Re: Sockets in C++?
On Apr 11, 4:08 am, malte.cla...@arcor.de (Malte Clasen) wrote:
John Nagle wrote:
Generally, the Standard C++ libraries have been careful to adhere
to a "library" model, where user code calls libraries, rather than a
"framework" model, where the library calls user code. This should
However, I tend to think of function objects as some kind of callback
that is already existing in the standard library. I think passing a
custom strict weak ordering to sort() as an object is more intuitive and
useful than providing the building blocks for a custom sort algorithms
just to stick with the library paradigm.
I think his objection was to an asynchronous callback. (I'm not
familiar with boost.asio, but that's what the name suggests.)
There'a big difference between a callback that is called from
within the function, and one which is called asynchronously,
some time later.
James Kanze (GABI Software) email:firstname.lastname@example.org
Conseils en informatique orient?e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S?mard, 78210 St.-Cyr-l'?cole, France, +33 (0)1 30 23 00 34
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:email@example.com ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]