|
Boost : |
From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2005-12-12 06:46:05
On 12/12/05, Cory Nelson <phrosty_at_[hidden]> wrote:
[snip]
>
> For the API, one thing that struck me is the almost C-style error
> handling. I believe the .NET way is better. It provides a point that
> the developer must call to get the result of the operation, and that
> the sockets can throw any exceptions that would normally be thrown in
> sync operations.
>
> ie,
>
> void MyHandler(IAsyncResult res) {
> int len;
> try {
> len=sock.EndRecv(res);
> }
> }
Could you elaborate a little more about what you mean with C-style
error handling and the error handling you prefer (.NET) ?
[snip]
> Async connecting does not use ConnectEx on platforms which support it.
> This isn't such a big issue, but it's still a disappointment.
I agree, ConnectEx is very good. I wouldnt say a disappointment
though, it is very easy to integrate this to the library.
[snip]
>
> --
> Cory Nelson
> http://www.int64.org
>
best regards,
-- Felipe Magno de Almeida
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk