pub unsafe extern "C" fn aeron_subscription_try_resolve_channel_endpoint_port(
    subscription: *mut aeron_subscription_t,
    uri: *mut c_char,
    uri_len: usize
) -> c_int
Expand description

Retrieves the channel URI for this subscription with any wildcard ports filled in. If the channel is not UDP or does not have a wildcard port (0), then it will return the original URI.

@param subscription to query @param uri buffer to hold the resolved uri @param uri_len length of the buffer @return -1 on failure or the number of bytes written to the buffer (excluding the NULL terminator). Writing is done on a per key basis, so if the buffer was truncated before writing completed, it will only include the byte count up to the key that overflowed. However, the invariant that if the number returned >= uri_len, then output will have been truncated.