コード例 #1
0
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);
}
コード例 #2
0
ファイル: builder.hpp プロジェクト: asutton/beaker
// Returns the canonical type `nat16`.
inline nat_type& builder::get_nat16_type() { return get_nat_type(16); }
コード例 #3
0
ファイル: builder.hpp プロジェクト: asutton/beaker
// Returns the canonical type `nat64`.
inline nat_type& builder::get_nat64_type() { return get_nat_type(64); }
コード例 #4
0
ファイル: builder.hpp プロジェクト: asutton/beaker
// Returns the canonical type `nat8`.
inline nat_type& builder::get_nat8_type() { return get_nat_type(8); }
コード例 #5
0
ファイル: builder.hpp プロジェクト: asutton/beaker
// Returns the canonical type `nat32`.
inline nat_type& builder::get_nat32_type() { return get_nat_type(32); }