CService::GetSockAddr

Fill a sockaddr structure with this service's address and port.

Synopsis

Declared in <netaddress.h>

bool
GetSockAddr(
    sockaddr* paddr,
    socklen_t* addrlen) const;

Return Value

True when the structure was populated.

Parameters

NameDescription
paddrDestination sockaddr structure to populate.
addrlenIn/out length of the sockaddr structure in bytes.