Skip to main content

EOS_P2P_GetNATType

Function EOS_P2P_GetNATType 

Source
pub unsafe extern "C" fn EOS_P2P_GetNATType(
    Handle: EOS_HP2P,
    Options: *const EOS_P2P_GetNATTypeOptions,
    OutNATType: *mut EOS_ENATType,
) -> EOS_EResult
Expand description

Get our last-queried NAT-type, if it has been successfully queried.

@param Options Information about what version of the EOS_P2P_GetNATType API is supported @param OutNATType The queried NAT Type, or unknown if unknown @return EOS_EResult containing the result of the operation. Possible result codes:

  • EOS_Success - if we have cached data
  • EOS_NotFound - If we do not have queried data cached

@see EOS_P2P_GetNATTypeOptions