[#CService-GetSockAddr] = xref:CService.adoc[CService]::GetSockAddr :relfileprefix: ../ :mrdocs: Fill a sockaddr structure with this service's address and port. == Synopsis Declared in `<netaddress.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool GetSockAddr( sockaddr* paddr, socklen_t* addrlen) const; ---- == Return Value True when the structure was populated. == Parameters [cols="1,4"] |=== | Name| Description | *paddr* | Destination sockaddr structure to populate. | *addrlen* | In/out length of the sockaddr structure in bytes. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#