public static bool IsHolePunchingPossible(STUN_NetType stunNetType) { switch (stunNetType) { case STUN_NetType.Symmetric: case STUN_NetType.SymmetricUdpFirewall: case STUN_NetType.UdpBlocked: return(false); default: return(true); } }
/// <summary> /// Default constructor. /// </summary> /// <param name="netType">Specifies UDP network type.</param> /// <param name="publicEndPoint">Public IP end point.</param> public STUN_Result(STUN_NetType netType, IPEndPoint publicEndPoint) { m_NetType = netType; m_pPublicEndPoint = publicEndPoint; }
/// <summary> /// Default constructor. /// </summary> /// <param name="netType">Specifies UDP network type.</param> /// <param name="publicEndPoint">Public IP end point.</param> public STUN_Result(STUN_NetType netType, IPEndPoint publicEndPoint) { fNetType = netType; fPublicEndPoint = publicEndPoint; }