Ejemplo n.º 1
0
        public override string ToString()
        {
            var result = new StringBuilder();

            result.AppendLine("I2PRouterInfo");

            result.AppendLine("Identity     : " + Identity.IdentHash.Id32);
            result.AppendLine("Identity     : " + Identity.ToString());
            result.AppendLine("Publish date : " + PublishedDate.ToString());

            foreach (var addr in Adresses)
            {
                result.AppendLine("Address      : " + addr.ToString());
            }

            result.AppendLine(Options.ToString());
            if (Signature == null)
            {
                result.AppendLine("Signature    : member (null)");
            }
            else
            {
                result.AppendLine("Signature    : " + (Signature.Sig == null ? "(null)" :
                                                       " [" + Signature.Sig.Length + "] " + Signature.ToString()));
            }

            return(result.ToString());
        }
Ejemplo n.º 2
0
        public override string ToString()
        {
            var result = new StringBuilder();

            result.AppendLine("I2PRouterAddress");

            result.AppendLine("Cost         : " + Cost.ToString());
            result.AppendLine("Expiration 0 : " + Expiration.ToString());
            result.AppendLine("Transport    : " + TransportStyle);
            result.AppendLine("Options      : " + Options.ToString());

            return(result.ToString());
        }