public Bootstrap ( |
||
node | The node to bootstrap off of. | |
Résultat | bool |
public bool Bootstrap(ToxNode node)
{
var error = ToxErrorBootstrap.Ok;
return Bootstrap(node, out error);
}
Tox::Bootstrap ( |
public void TestToxBootstrapAndConnect() { var tox = new Tox(_options); var error = ToxErrorBootstrap.Ok; foreach (var node in Globals.Nodes) { bool result = tox.Bootstrap(node, out error); if (!result || error != ToxErrorBootstrap.Ok) Assert.Fail("Failed to bootstrap, error: {0}, result: {1}", error, result); } tox.Start(); while (!tox.IsConnected) { Thread.Sleep(10); } Console.WriteLine("Tox connected!"); tox.Dispose(); }