
Am Dienstag, den 27.10.2009, 20:10 +0100 schrieb "Peter Foelsche" <peter_foelsche@agilent.com>:
"Olaf van der Spek" <olafvdspek@gmail.com> wrote in message news:b2cc26e40910271142y1edebfbqdf321627bffd1e15@mail.gmail.com...
What is the use of the socket object created in the first line?
Doesn't the third line use it?
The point is that there must be always something following this statement -- by itself it does not make any sense. Thus this code could have been combined with any possible following code.
Is the code that follows it always the same?
The number of use cases is limited. Here are some of them:
* connect to a well known address (client) * bind to a well known address -- create listening socket (server)
So what do you propose? An asynchronous constructor for socket? Daniel
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost