Boost logo

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:


> 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) ?


> 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.


> --
> Cory Nelson

best regards,

Felipe Magno de Almeida

Boost list run by bdawes at, gregod at, cpdaniel at, john at