Set CService from a network sockaddr.
Declared in <netaddress.h>
bool
SetSockAddr(
sockaddr const* paddr,
socklen_t addrlen);
true on success
| 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 |