Boost logo

Boost :

From: jk_at_[hidden]
Date: 2002-03-01 01:46:37


25 Feb 2002 04:54:20 +0300 mfdylan wrote:
>Error handling almost has to be done with exceptions - and note that
>basically all socket errors except EWOULDBLOCK mean the socket is no
>longer usuable anyway.

Not exactly. There is also EINTR condition, and the socket is still
usable after that; and there are ENOBUFS, ENOMEM, EMSGSIZE for sending,
which are restartable too - when there is memory shortage, all you need
to do is just repeat after some reasonable delay. Furthermore, after
EPIPE the socket is unusable but it is hardly can be considered as
runtime-error.

-- 
jk

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk