Boost logo

Boost :

Subject: Re: [boost] asio library
From: Peter Foelsche (peter_foelsche_at_[hidden])
Date: 2009-10-27 15:10:50


"Olaf van der Spek" <olafvdspek_at_[hidden]> wrote in message
news:b2cc26e40910271142y1edebfbqdf321627bffd1e15_at_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)


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk