[#CService-SetSockAddr] = xref:CService.adoc[CService]::SetSockAddr :relfileprefix: ../ :mrdocs: Set CService from a network sockaddr. == Synopsis Declared in `<netaddress.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool SetSockAddr( sockaddr const* paddr, socklen_t addrlen); ---- == Return Value true on success == Parameters [cols="1,4"] |=== | Name| Description | *paddr* [in] | Pointer to sockaddr structure | *addrlen* [in] | Length of sockaddr structure in bytes. This will be checked to exactly match the length of a socket address of the provided family, unless std::nullopt is passed |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#