Module libzt::node [−][src]
Structs
ZeroTierNode | |
zts_addr_info_t | Details about an assigned address that was added or removed |
zts_event_msg_t | Callback message |
zts_fd_set | |
zts_hostent | |
zts_in6_addr | |
zts_in_addr | |
zts_in_pktinfo | |
zts_iovec | |
zts_ip4_addr | |
zts_ip6_addr | This is the aligned version of ip6_addr_t, used as local variable, on the stack, etc. |
zts_ip_addr | A union struct for both IP version’s addresses. ATTENTION: watch out for its size when adding IPv6 address scope! |
zts_ip_mreq | |
zts_ipv6_mreq | |
zts_linger | |
zts_msghdr | |
zts_multicast_group_t | An Ethernet multicast group |
zts_net_info_t | Virtual network configuration |
zts_net_info_t__bindgen_ty_1 | Multicast groups to which this network’s device is subscribed |
zts_netif_info_t | Structure used to convey information about a virtual network interface (netif) to a user application. |
zts_node_info_t | Runtime details about the current node |
zts_path_t | Physical network path to a peer |
zts_peer_info_t | Peer status result buffer |
zts_pollfd | |
zts_root_set_t | Structure used to specify a root topology (aka a world) |
zts_route_info_t | A route to be pushed on a virtual network |
zts_sockaddr | Pointers to socket address structures are often cast to this type |
zts_sockaddr_in | Address structure to specify an IPv4 endpoint |
zts_sockaddr_in6 | Address structure to specify an IPv6 endpoint |
zts_sockaddr_storage | Address structure large enough to hold IPv4 and IPv6 addresses |
zts_stats_counter_t | Structure containing counters for various protocol statistics |
zts_timeval |
Constants
Statics
zts_errno |
Functions
zts_accept⚠ | @brief Accept an incoming connection |
zts_addr_compute_6plane⚠ | @brief Compute a |
zts_addr_compute_6plane_str⚠ | @brief Compute |
zts_addr_compute_rfc4193⚠ | @brief Compute |
zts_addr_compute_rfc4193_str⚠ | @brief Compute |
zts_addr_get⚠ | @brief Get the first-assigned IP on the given network. |
zts_addr_get_all⚠ | @brief Get all IP addresses assigned to this node by the given network |
zts_addr_get_str⚠ | @brief Get the first-assigned IP on the given network as a null-terminated human-readable string |
zts_addr_is_assigned⚠ | @brief Return whether an address of the given family has been assigned by the network |
zts_bind⚠ | @brief Bind a socket to a local address |
zts_bsd_accept⚠ | @brief Accept an incoming connection |
zts_bsd_bind⚠ | @brief Bind a socket to a local address |
zts_bsd_close⚠ | @brief Close socket. |
zts_bsd_connect⚠ | @brief Connect a socket to a remote host |
zts_bsd_fcntl⚠ | @brief Issue file control commands on a socket |
zts_bsd_gethostbyname⚠ | @brief Resolve a host-name |
zts_bsd_getpeername⚠ | @brief Get the name (address) of the remote end of the socket |
zts_bsd_getsockname⚠ | @brief Get the name (address) of the local end of the socket |
zts_bsd_getsockopt⚠ | @brief Get socket options. |
zts_bsd_ioctl⚠ | @brief Control a device |
zts_bsd_listen⚠ | @brief Listen for incoming connections on socket |
zts_bsd_poll⚠ | @brief Wait for some event on a file descriptor. |
zts_bsd_read⚠ | @brief Read data from socket onto buffer |
zts_bsd_readv⚠ | @brief Read data from socket into multiple buffers |
zts_bsd_recv⚠ | @brief Receive data from remote host |
zts_bsd_recvfrom⚠ | @brief Receive data from remote host |
zts_bsd_recvmsg⚠ | @brief Receive a message from remote host |
zts_bsd_select⚠ | @brief Monitor multiple file descriptors for “readiness” |
zts_bsd_send⚠ | @brief Send data to remote host |
zts_bsd_sendmsg⚠ | @brief Send message to remote host |
zts_bsd_sendto⚠ | @brief Send data to remote host |
zts_bsd_setsockopt⚠ | @brief Set socket options. |
zts_bsd_shutdown⚠ | @brief Shut down some aspect of a socket |
zts_bsd_socket⚠ | @brief Create a socket |
zts_bsd_write⚠ | @brief Write data from buffer to socket |
zts_bsd_writev⚠ | @brief Write data from multiple buffers to socket. |
zts_close⚠ | @brief Close socket. |
zts_connect⚠ | @brief Connect a socket to a remote host |
zts_core_lock_obtain⚠ | @brief Lock the core service so that queries about addresses, routes, paths, etc. can be performed. |
zts_core_lock_release⚠ | @brief Lock the core service so that queries about addresses, routes, paths, etc. can be performed. |
zts_core_query_addr⚠ | @brief Lock the core service so that queries about addresses, routes, paths, etc. can be performed. |
zts_core_query_addr_count⚠ | @brief Lock the core service so that queries about addresses, routes, paths, etc. can be performed. |
zts_core_query_mc⚠ | @brief Lock the core service so that queries about addresses, routes, paths, etc. can be performed. |
zts_core_query_mc_count⚠ | @brief Lock the core service so that queries about addresses, routes, paths, etc. can be performed. |
zts_core_query_path⚠ | @brief Lock the core service so that queries about addresses, routes, paths, etc. can be performed. |
zts_core_query_path_count⚠ | @brief Lock the core service so that queries about addresses, routes, paths, etc. can be performed. |
zts_core_query_route⚠ | @brief Lock the core service so that queries about addresses, routes, paths, etc. can be performed. |
zts_core_query_route_count⚠ | @brief Lock the core service so that queries about addresses, routes, paths, etc. can be performed. |
zts_dns_get_server⚠ | Obtain one of the currently configured DNS server. |
zts_dns_set_server⚠ | Initialize one of the DNS servers. |
zts_get_blocking⚠ | @brief Return whether blocking mode |
zts_get_data_available⚠ | @brief Return amount of data available to read from socket |
zts_get_keepalive⚠ | @brief Return whether |
zts_get_last_socket_error⚠ | @brief Get the last error for the given socket |
zts_get_linger_enabled⚠ | @brief Return whether |
zts_get_linger_value⚠ | @brief Return the value of |
zts_get_no_delay⚠ | @brief Return whether |
zts_get_pending_data_size⚠ | @brief Return the number of bytes available to read from the network buffer |
zts_get_recv_buf_size⚠ | @brief Return the value of |
zts_get_recv_timeout⚠ | @brief Return the value of |
zts_get_reuse_addr⚠ | @brief Return whether |
zts_get_send_buf_size⚠ | @brief Return the value of |
zts_get_send_timeout⚠ | @brief Return the value of |
zts_get_ttl⚠ | @brief Return the value of |
zts_getpeername⚠ | @brief Get the name (address) of the remote end of the socket |
zts_getsockname⚠ | @brief Get the name (address) of the local end of the socket |
zts_id_new⚠ | @brief Generates a node identity (public/secret key-pair) and stores it in a user-provided buffer. |
zts_id_pair_is_valid⚠ | @brief Verifies that a key-pair is valid. Checks formatting and pairing of key to address. |
zts_inet_ntop⚠ | Convert IPv4 and IPv6 address structures to human-readable text form. |
zts_inet_pton⚠ | Convert C-string IPv4 and IPv6 addresses to binary form. |
zts_init_allow_id_cache⚠ | @brief Enable or disable whether the node will cache identities (enabled
by default when |
zts_init_allow_net_cache⚠ | @brief Enable or disable whether the node will cache network details
(enabled by default when |
zts_init_allow_peer_cache⚠ | @brief Enable or disable whether the node will cache peer details (enabled
by default when |
zts_init_allow_port_mapping⚠ | @brief Allow or disallow the use of port-mapping. This is enabled by default. This is an
initialization function that can only be called before |
zts_init_allow_roots_cache⚠ | @brief Enable or disable whether the node will cache root definitions (enabled
by default when |
zts_init_allow_secondary_port⚠ | @brief Allow or disallow ZeroTier from automatically selecting a backup port to help get through
buggy NAT. This is enabled by default. This port is randomly chosen and should be disabled if you
want to control exactly which ports ZeroTier talks on and (iff) you know with absolute certainty
that traffic on your chosen primary port is allowed. This is an initialization function that can
only be called before |
zts_init_blacklist_if⚠ | @brief Blacklist an interface prefix (or name). This prevents ZeroTier from
sending traffic over matching interfaces. This is an initialization function that can
only be called before |
zts_init_from_memory⚠ | @brief Instruct ZeroTier to use the identity provided in |
zts_init_from_storage⚠ | @brief Instruct ZeroTier to look for node identity files at the given location. This is an
initialization function that can only be called before |
zts_init_set_event_handler⚠ | |
zts_init_set_port⚠ | @brief Set the port to which the node should bind. This is an initialization function that can
only be called before |
zts_init_set_random_port_range⚠ | @brief Set range that random ports will be selected from. This is an initialization function that can
only be called before |
zts_init_set_roots⚠ | @brief Present a root set definition for ZeroTier to use instead of the default.
This is an initialization function that can only be called before |
zts_ipaddr_aton⚠ | Convert IP address string (both versions) to numeric. The version is auto-detected from the string. |
zts_ipaddr_ntoa⚠ | Convert numeric IP address (both versions) into |
zts_listen⚠ | @brief Listen for incoming connections on socket |
zts_moon_deorbit⚠ | @brief De-orbit a given moon (user-defined root server) |
zts_moon_orbit⚠ | @brief Orbit a given moon (user-defined root server) |
zts_net_compute_adhoc_id⚠ | @brief Compute |
zts_net_get_broadcast⚠ | @brief Return whether broadcast is enabled on this network |
zts_net_get_mac⚠ | @brief Get the MAC Address for this node on the given network |
zts_net_get_mac_str⚠ | @brief Get the MAC Address for this node on the given network |
zts_net_get_mtu⚠ | @brief Get the MTU of the given network |
zts_net_get_name⚠ | @brief Get the nickname of the network |
zts_net_get_status⚠ | @brief Get the status of the network |
zts_net_get_type⚠ | @brief Get the type of network (public or private.) |
zts_net_join⚠ | @brief Join a network |
zts_net_leave⚠ | @brief Leave a network |
zts_net_transport_is_ready⚠ | @brief Return whether this network is ready to send and receive traffic. |
zts_node_free⚠ | @brief Stop all background threads, bring down all transport services, free all resources. After calling this function an application restart will be required before the library can be used again. Callable only after the node has been started. |
zts_node_get_id⚠ | @brief Get the public node identity (aka |
zts_node_get_id_pair⚠ | @brief Copy the current node’s public (and secret!) identity into a buffer. |
zts_node_get_port⚠ | @brief Get the primary port to which the node is bound. Callable only after the node has been started. |
zts_node_is_online⚠ | @brief Return whether the node is online (Can reach the Internet) |
zts_node_start⚠ | @brief Start the ZeroTier node. Should be called after calling the relevant
|
zts_node_stop⚠ | @brief Stop the ZeroTier node and bring down all virtual network transport services. Callable only after the node has been started. |
zts_read⚠ | @brief Read data from socket onto buffer |
zts_recv⚠ | @brief Receive data from remote host |
zts_route_is_assigned⚠ | @brief Return whether a managed route of the given address family has been assigned by the network |
zts_send⚠ | @brief Send data to remote host |
zts_set_blocking⚠ | @brief Change blocking behavior |
zts_set_keepalive⚠ | @brief Enable or disable |
zts_set_linger⚠ | @brief Enable or disable |
zts_set_no_delay⚠ | @brief Enable or disable |
zts_set_recv_buf_size⚠ | @brief Set the value of |
zts_set_recv_timeout⚠ | @brief Set the value of |
zts_set_reuse_addr⚠ | @brief Enable or disable |
zts_set_send_buf_size⚠ | @brief Set the value of |
zts_set_send_timeout⚠ | @brief Set the value of |
zts_set_ttl⚠ | @brief Set the value of |
zts_shutdown_rd⚠ | @brief Shut down |
zts_shutdown_rdwr⚠ | @brief Shut down both |
zts_shutdown_wr⚠ | @brief Shut down |
zts_socket⚠ | @brief Create a socket |
zts_stats_get_all⚠ | @brief Get all statistical counters for all protocols and levels. See also: lwip/stats.h. |
zts_tcp_client⚠ | @brief A convenience function that takes a remote address IP string and creates the appropriate type of socket, and uses it to connect to a remote host. |
zts_tcp_server⚠ | @brief A convenience function that takes a remote address IP string and creates the appropriate type of socket, binds, listens, and then accepts on it. |
zts_udp_client⚠ | @brief This function doesn’t really do anything other than be a namespace
counterpart to |
zts_udp_server⚠ | @brief A convenience function that takes a remote address IP string and creates the appropriate type of socket, and binds to it. |
zts_util_delay⚠ | @brief Platform-agnostic delay |
zts_util_get_ip_family⚠ | @brief Return the family type of the IP string |
zts_util_ipstr_to_saddr⚠ | Convert human-friendly IP string to |
zts_util_ntop⚠ | @brief Similar to |
zts_util_sign_root_set⚠ | @brief Generates a new root set definition |
zts_write⚠ | @brief Write data from buffer to socket |
Type Definitions
int_fast8_t | |
int_fast16_t | |
int_fast32_t | |
int_fast64_t | |
int_least8_t | |
int_least16_t | |
int_least32_t | |
int_least64_t | |
intmax_t | |
size_t | |
ssize_t | |
uint_fast8_t | |
uint_fast16_t | |
uint_fast32_t | |
uint_fast64_t | |
uint_least8_t | |
uint_least16_t | |
uint_least32_t | |
uint_least64_t | |
uintmax_t | |
zts_errno_t | |
zts_error_t | Common error return values |
zts_event_t | Event codes used by the (optional) callback API |
zts_in_addr_t | |
zts_in_port_t | |
zts_net_info_type_t | Virtual network type codes |
zts_network_status_t | Virtual network status codes |
zts_nfds_t | |
zts_peer_role_t | The peer’s trust hierarchy role |
zts_sa_family_t | |
zts_socklen_t |
Unions
zts_in6_addr_un | |
zts_ip_addr__bindgen_ty_1 |