7 Jun
2010
7 Jun
'10
9:58 a.m.
On Mon, Jun 7, 2010 at 6:54 AM, Igor R
bad designed api. close() does not need to be public -- it belongs into the destructor.
Usually socket destruction is the consequence of its closing. How would you emulate the following scheme, if it wouldn't be possible to close a socket?
You would destroy the socket. Delete'ing it, or using a boost::optional. [snipped example] Regards, -- Felipe Magno de Almeida