Exemplo n.º 1
0
        public override DestinationInfo CreateDestinationInfo()
        {
            var info = new DestinationInfo();

            info.IsOpenExternally = IsOpenExternally;
            info.TypeName         = GetType().ToString();
            info.Data             = new[] {
                IPAddress.ToString(),
                    PrefixLength.ToString(),
                    Port.ToString()
            };
            return(info);
        }
Exemplo n.º 2
0
 public TCPIPv6Destination(Core core, DestinationInfo info)
     : base(core, int.Parse(info.Data[1]), IPAddress.Parse(info.Data[0]), uint.Parse(info.Data[2]), info.IsOpenExternally)
 {
 }