Ejemplo n.º 1
0
 public SafeNode(string name, string ip, int port, X509Certificate2 pkey, bool local, ConnectionMethod.ConnMethod CM = ConnectionMethod.ConnMethod.Clear)
 {
     this.ip   = ip;
     this.port = port;
     this.CM   = CM;
     identity  = new Identity(pkey, "", name, local);
 }
Ejemplo n.º 2
0
 public NetworkSetup(ConnectionMethod.ConnMethod CM, PrMethod PM)
 {
     InitializeComponent();
     this.CM = CM;
     this.PM = PM;
     if (PM == PrMethod.custom)
     {
         button1.Enabled = true;
         button2.Enabled = true;
         button3.Enabled = true;
     }
     if (CM == ConnectionMethod.ConnMethod.Clear)
     {
         button1.Enabled = true;
     }
     else if (CM == ConnectionMethod.ConnMethod.I2P)
     {
         button3.Enabled = true;
     }
     else if (CM == ConnectionMethod.ConnMethod.Tor)
     {
         button2.Enabled = true;
     }
 }
Ejemplo n.º 3
0
 public SafeNode(string name, X509Certificate2 pkey, string hiddenid, ConnectionMethod.ConnMethod CM, bool local)
 {
     this.hiddenid = hiddenid;
     this.CM       = CM;
     identity      = new Identity(pkey, "", name, local);
 }
Ejemplo n.º 4
0
 internal SafeNode(string hiddenid, ConnectionMethod.ConnMethod CM)
 {
     this.hiddenid = hiddenid;
     this.CM       = CM;
 }
Ejemplo n.º 5
0
 internal SafeNode(string ip, int port, ConnectionMethod.ConnMethod CM = ConnectionMethod.ConnMethod.Clear)
 {
     this.ip   = ip;
     this.port = port;
     this.CM   = CM;
 }
Ejemplo n.º 6
0
 public SuperNode(string name, ConnectionMethod.ConnMethod CM)
 {
     this.name = name;
     this.CM   = CM;
 }