--2B/JsCI69OhZNC5r
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Thu, Jan 31, 2008 at 07:47:41PM +0100, Heiko Wundram (Beenic) wrote:
>I personally don't find this especially beautiful, and generally, as there=
is=20
>a getsockopt(SO_TYPE), I'd have thought the above should look (somewhat)=
=20
>similar to the following:
>
>int opt;
>socklen_t optlen =3D sizeof(opt);
>
>getsockopt(fd,SOL_SOCKET,SO_DOMAIN,&opt,&optlen);
Unfortunately and unlike the socket type returned by SO_TYPE, the
protocol family does not seem to be readily available within the
struct socket. Having had a rummage around in the socket structure,
it's not obvious how to implement this in a protocol-independent way.
--=20
Peter Jeremy
Please excuse any delays as the result of my ISP's inability to implement
an MTA that is either RFC2821-compliant or matches their claimed behaviour.
--2B/JsCI69OhZNC5r
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)
iD8DBQFHovLN/opHv/APuIcRAoc9AJ0R6MweXj3aeat0TCILR+rms/7m/gCgqUqr
AsNSCdt/srb3R4cKpR5pLGQ=
=WuSq
-----END PGP SIGNATURE-----
--2B/JsCI69OhZNC5r--