3 ms·
A very minor gripe, but it seems weird to use the "bool success" return value convention for one function, but the "int return, negative on error" convention fo
by ekimekim 13y ago
A very minor gripe, but it seems weird to use the "bool success" return value convention for one function, but the "int return, negative on error" convention for the other.
Also there's a few places where ERRNO is going to get clobbered, eg. by closing the socket before reporting the error back to the caller. A more careful implementation would save errno before calling close.
Otherwise though, good simple abstraction of a relatively obscure feature.