[bind10-dev] networking includes
JINMEI Tatuya / 神明達哉
jinmei at isc.org
Thu Jul 12 18:58:37 UTC 2012
At Mon, 02 Jul 2012 10:56:26 +0000,
Francis Dupont <fdupont at isc.org> wrote:
> > As you say, it is a drastic solution. Most of the .cc files we have
> > don't use any networking at all.
>
> => it is very far from being true: in fact most of the .cc files have
> a dependency on networking.
>
> > Actually, most of the networking should be wrapped in ASIO
> > anyway. Personally, I think such solution lacks the basic levels of
> > elegance.
From a quick check, at least sys/socket.h and netinet/in.h don't seem
to be included in other .h files except in network related modules.
So maybe we can introduce a wrapper header file for the necessary
definitions and use it in these .h files instead of the system
supplied ones. For .cc files there seem to be some more, but using
the wrapper header file should work for them, too, and I guess we can
actually eliminate some of them.
---
JINMEI, Tatuya
More information about the bind10-dev
mailing list