add_tcp_relay


Description:

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

Adds additional host:port pair as TCP relay.

This function 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.

Parameters:

host

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

port

The port on the host on which the TCP relay is listening.

public_key

The long term public key of the TCP relay (PUBLIC_KEY_SIZE bytes).

Returns:

true on success.