[posix EventEngine] fix ResolvedAddressIsWildcard documentation

The function behaviour is to return the port used only when the address is actually a wildcard address : 0.0.0.0 (ipv4) or :: (ipv6).
pull/36143/head
nipil 11 months ago committed by GitHub
parent c68e6c27ca
commit 70683d0139
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  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