OT: getting the protocol family of a file descriptor
Heiko Wundram (Beenic)
wundram at beenic.net
Thu Jan 31 00:22:01 PST 2008
Hey all!
I'm currently in the need to get the protocol family that was used to create a
socket (and passed via a unix domain socket to another program), and I've not
really come up with a proper scheme other than to use getsockname and
retrieve sa_family from the resulting socket (which currently matches the
socket domain and historically has, but why take the chances ;-)).
Is there any other "better" way to get at the domain (protocol family) of a
socket?
--
Heiko Wundram
Product & Application Development
-------------------------------------
Office Germany - EXPO PARK HANNOVER
Beenic Networks GmbH
Mailänder Straße 2
30539 Hannover
Fon +49 511 / 590 935 - 15
Fax +49 511 / 590 935 - 29
Mobil +49 172 / 43 737 34
Mail wundram at beenic.net
Beenic Networks GmbH
-------------------------------------
Sitz der Gesellschaft: Hannover
Geschäftsführer: Jorge Delgado
Registernummer: HRB 61869
Registergericht: Amtsgericht Hannover
More information about the freebsd-hackers
mailing list