internal static extern bool Bootstrap(ToxHandle tox, string host, ushort port, byte[] publicKey, ref ToxErrorBootstrap error);
/// <summary> /// Adds a node as a TCP relay. /// This method can be used to initiate TCP connections to different ports on the same bootstrap node, or to add TCP relays without using them as bootstrap nodes. /// </summary> /// <param name="node">The node to add.</param> /// <param name="error"></param> /// <returns>True on success.</returns> public bool AddTcpRelay(ToxNode node, out ToxErrorBootstrap error) { ThrowIfDisposed(); if (node == null) throw new ArgumentNullException("node"); error = ToxErrorBootstrap.Ok; return ToxFunctions.AddTcpRelay(_tox, node.Address, (ushort)node.Port, node.PublicKey.GetBytes(), ref error); }
public static extern Boolean AddTcpRelay(ToxHandle tox, String host, UInt16 port, Byte[] publicKey, ref ToxErrorBootstrap error);