I want to write a C++ wrapper for the Linux Socket API. In the socket() ctor the adress family (AF) is requested. I dont want to require the AF in the connect() signature ag
Damn. Searched about half an hour. Now after posting this question I found immiediately the answer.
getsockopt([...]) with option SO_DOMAIN (see socket options)