[#CService-GetSAFamily]
= xref:CService.adoc[CService]::GetSAFamily
:relfileprefix: ../
:mrdocs:

Get the address family

== Synopsis

Declared in `&lt;netaddress&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
sa&lowbar;family&lowbar;t
GetSAFamily() const;
----

== Return Value

AF&lowbar;UNSPEC if unspecified

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====

[.small]#Created with https://www.mrdocs.com[MrDocs]#
