|
Boost : |
Subject: Re: [boost] asio library
From: Peter Foelsche (peter_foelsche_at_[hidden])
Date: 2009-10-27 15:45:35
"Daniel Pfeifer" <daniel_at_[hidden]> wrote in message
news:6d2cdc7bcae533b0939b0137b5b4c0af-EhVcX1dJTQZXRw0RBgwNVDBXdh9XVlpBXkJHHF5ZWC9QVUYKXlZoAFFSQ11aLkQAWlxfR1lSWQg=-webmailer2_at_server07.webmailer.hosteurope.de...
>> 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?
Nope I did not propose anything like this.
For the two use-cases I mentioned, we would need two separate classes
-- with a constructor and destructor and a method to return the created
file-descriptor/socket-handle.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk