NETLIB_BOOLEAN is_udp_port_opened(const char *stun_server, int port, NatType *nType) { *nType = get_nat_type(stun_server); return (*nType > StunTypeUnknown && *nType < StunTypeBlocked ? NETLIB_TRUE : NETLIB_FALSE); }
// Returns the canonical type `nat16`. inline nat_type& builder::get_nat16_type() { return get_nat_type(16); }
// Returns the canonical type `nat64`. inline nat_type& builder::get_nat64_type() { return get_nat_type(64); }
// Returns the canonical type `nat8`. inline nat_type& builder::get_nat8_type() { return get_nat_type(8); }
// Returns the canonical type `nat32`. inline nat_type& builder::get_nat32_type() { return get_nat_type(32); }