必须填写至少10个字的日志
nnhy 编写于 2012-07-27 18:48:21
X
using System.Net;

namespace NewLife.Net.Stun
{
    /// <summary>Stun结果</summary>
    public class StunResult
    {
        private StunNetType _Type;
        /// <summary>类型</summary>
        public StunNetType Type { get { return _Type; } set { _Type = value; } }

        private IPEndPoint _Public;
        /// <summary>公共地址</summary>
        public IPEndPoint Public { get { return _Public; } set { _Public = value; } }

        /// <summary>实例化Stun结果</summary>
        /// <param name="type"></param>
        /// <param name="ep"></param>
        public StunResult(StunNetType type, IPEndPoint ep) { Type = type; Public = ep; }

        /// <summary>已重载。</summary>
        /// <returns></returns>
        public override string ToString()
        {
            return string.Format("{0} {1}", Type, Public);
        }
    }
}