Boost logo

Boost Users :

Subject: Re: [Boost-users] [Asio]What's the behavior of socket.async_write()after socket.close() is called?
From: Igor R (boost.lists_at_[hidden])
Date: 2010-06-07 06:17:01


> You would destroy the socket. Delete'ing it,

So it would be always necessary to store a ptr to a socket? Then
delete the socket, which was passed by reference to async_read()?
Doesn't sound good, does it?

> or using a boost::optional.

But it's not optional, according to its semantics...


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net