Function gnunet_sys::GNUNET_HELLO_equals[][src]

pub unsafe extern "C" fn GNUNET_HELLO_equals(
    h1: *const GNUNET_HELLO_Message,
    h2: *const GNUNET_HELLO_Message,
    now: GNUNET_TIME_Absolute
) -> GNUNET_TIME_Absolute

Test if two HELLO messages contain the same addresses. If they only differ in expiration time, the lowest expiration time larger than ‘now’ where they differ is returned.

@param h1 first HELLO message @param h2 the second HELLO message @param now time to use for deciding which addresses have expired and should not be considered at all @return absolute time forever if the two HELLOs are totally identical; smallest timestamp >= now if they only differ in timestamps; zero if the some addresses with expirations >= now do not match at all