CNetAddr::GetInAddr

Fill an in_addr with this address's IPv4 value.

Synopsis

Declared in <netaddress.h>

bool
GetInAddr(in_addr* pipv4Addr) const;

Return Value

True when this is an IPv4 address and the value was written.

Parameters

NameDescription
pipv4AddrDestination in_addr to populate with the IPv4 value.