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

Fill a sockaddr structure with this service&apos;s address and port&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
GetSockAddr(
    sockaddr* paddr,
    socklen&lowbar;t* addrlen) const;
----

== Return Value

True when the structure was populated&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *paddr*
| Destination sockaddr structure to populate&period;
| *addrlen*
| In&sol;out length of the sockaddr structure in bytes&period;
|===


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