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