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);
            }
        }
Exemplo 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;
 }
Exemplo 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;
 }
Exemplo 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;
 }