[posix EventEngine] fix ResolvedAddressIsWildcard documentation (#36143)

Fix the wording of the description of the function for the return value : current version says the opposite of what the function does. The current behaviour is to return the port used, but only when the address _is actually_ a wildcard address : 0.0.0.0 (ipv4) or :: (ipv6). Plus mention both ipv4 and ipv6 in the description.

Closes #36143

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36143 from nipil:fix_ResolvedAddressIsWildcard_doc 70683d0139
PiperOrigin-RevId: 616894483
pull/36144/head
nipil 8 months ago committed by Copybara-Service
parent c68e6c27ca
commit b940f11388
  1. 2
      src/core/lib/event_engine/tcp_socket_utils.h

@ -57,7 +57,7 @@ void ResolvedAddressSetPort(EventEngine::ResolvedAddress& resolved_addr,
int port);
// Returns the port number associated with the address if the given address is
// not a wildcard ipv6 or ipv6 address. Otherwise returns absl::nullopt
// a wildcard ipv4 or ipv6 address. Otherwise returns absl::nullopt
absl::optional<int> ResolvedAddressIsWildcard(
const EventEngine::ResolvedAddress& addr);

Loading…
Cancel
Save