bootstrap


Description:

public bool bootstrap (string host, uint16 port, uint8[] public_key, out ErrBootstrap error = null)

Sends a "get nodes" request to the given bootstrap node with IP, port, and public key to setup connections.

This function will attempt to connect to the node using UDP. You must use this function even if Options.udp_enabled was set to false.

Parameters:

host

The hostname or IP address (IPv4 or IPv6) of the node. Must be at most TOX_MAX_HOSTNAME_LENGTH chars, including the NUL byte.

port

The port on the host on which the bootstrap Tox instance is listening.

public_key

The long term public key of the bootstrap node (PUBLIC_KEY_SIZE bytes).

Returns:

true on success.