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);
            }
        }
Esempio n. 2
0
 /// <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;
 }
Esempio n. 3
0
 /// <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;
 }
Esempio n. 4
0
 /// <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;
 }