\ No newline at end of file
diff --git a/pr/3170/docs/iroh/discovery/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html b/pr/3170/docs/iroh/discovery/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html
index d6586485a2..b2c917a0a7 100644
--- a/pr/3170/docs/iroh/discovery/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html
+++ b/pr/3170/docs/iroh/discovery/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html
@@ -1,2 +1,2 @@
-N0_DNS_NODE_ORIGIN_PROD in iroh::discovery::dns - Rust
\ No newline at end of file
diff --git a/pr/3170/docs/iroh/discovery/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html b/pr/3170/docs/iroh/discovery/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html
index 1a99f50f66..c3828aa994 100644
--- a/pr/3170/docs/iroh/discovery/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html
+++ b/pr/3170/docs/iroh/discovery/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html
@@ -1,2 +1,2 @@
-N0_DNS_NODE_ORIGIN_STAGING in iroh::discovery::dns - Rust
\ No newline at end of file
diff --git a/pr/3170/docs/iroh/discovery/dns/index.html b/pr/3170/docs/iroh/discovery/dns/index.html
index e9075255bf..98d1f1986f 100644
--- a/pr/3170/docs/iroh/discovery/dns/index.html
+++ b/pr/3170/docs/iroh/discovery/dns/index.html
@@ -1,2 +1,2 @@
-iroh::discovery::dns - Rust
\ No newline at end of file
diff --git a/pr/3170/docs/iroh/discovery/dns/struct.DnsDiscovery.html b/pr/3170/docs/iroh/discovery/dns/struct.DnsDiscovery.html
index 57e5427c62..7c844caa6c 100644
--- a/pr/3170/docs/iroh/discovery/dns/struct.DnsDiscovery.html
+++ b/pr/3170/docs/iroh/discovery/dns/struct.DnsDiscovery.html
@@ -1,4 +1,4 @@
-DnsDiscovery in iroh::discovery::dns - Rust
For testing it is possible to use the N0_DNS_NODE_ORIGIN_STAGING domain
with DnsDiscovery::new. This would then use a hosted staging discovery
service for testing purposes.
fn resolve(
&self,
ep: Endpoint,
node_id: NodeId,
diff --git a/pr/3170/docs/iroh/discovery/trait.Discovery.html b/pr/3170/docs/iroh/discovery/trait.Discovery.html
index d788160db0..d69ad5fb56 100644
--- a/pr/3170/docs/iroh/discovery/trait.Discovery.html
+++ b/pr/3170/docs/iroh/discovery/trait.Discovery.html
@@ -50,4 +50,4 @@ should be sent on all streams.
The crate::endpoint::Endpoint will subscribe to the discovery system
and add the discovered addresses to the internal address book as they arrive
on this stream.
\ No newline at end of file
diff --git a/pr/3170/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html b/pr/3170/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html
new file mode 100644
index 0000000000..de2c9fe2d9
--- /dev/null
+++ b/pr/3170/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html
@@ -0,0 +1,2 @@
+N0_DNS_NODE_ORIGIN_PROD in iroh::dns - Rust
\ No newline at end of file
diff --git a/pr/3170/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html b/pr/3170/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html
new file mode 100644
index 0000000000..c46196d446
--- /dev/null
+++ b/pr/3170/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html
@@ -0,0 +1,2 @@
+N0_DNS_NODE_ORIGIN_STAGING in iroh::dns - Rust
\ No newline at end of file
diff --git a/pr/3170/docs/iroh/dns/fn.default_resolver.html b/pr/3170/docs/iroh/dns/fn.default_resolver.html
deleted file mode 100644
index 63d6b5ff43..0000000000
--- a/pr/3170/docs/iroh/dns/fn.default_resolver.html
+++ /dev/null
@@ -1,4 +0,0 @@
-default_resolver in iroh::dns - Rust
The default resolver can be cheaply cloned and is shared throughout the running process.
-It is configured to use the system’s DNS configuration.
-
\ No newline at end of file
diff --git a/pr/3170/docs/iroh/dns/fn.resolver.html b/pr/3170/docs/iroh/dns/fn.resolver.html
deleted file mode 100644
index b0d0f39f1f..0000000000
--- a/pr/3170/docs/iroh/dns/fn.resolver.html
+++ /dev/null
@@ -1,2 +0,0 @@
-resolver in iroh::dns - Rust
\ No newline at end of file
diff --git a/pr/3170/docs/iroh/dns/index.html b/pr/3170/docs/iroh/dns/index.html
index 4778c2cebc..9c9eb92ded 100644
--- a/pr/3170/docs/iroh/dns/index.html
+++ b/pr/3170/docs/iroh/dns/index.html
@@ -1,6 +1,7 @@
-iroh::dns - Rust
This module exports a DNS resolver, which is also the default resolver used in the
crate::Endpoint if no custom resolver is configured.
-
It also exports ResolverExt: A extension trait over DnsResolver to perform DNS queries
-by ipv4, ipv6, name and node_id. See the node_info module documentation for details on how
+
The resolver provides methods to resolve domain names to ipv4 and ipv6 addresses,
+and to resolve node ids to node addresses.
+
See the node_info module documentation for details on how
iroh node records are structured.
\ No newline at end of file
diff --git a/pr/3170/docs/iroh/dns/node_info/constant.IROH_TXT_NAME.html b/pr/3170/docs/iroh/dns/node_info/constant.IROH_TXT_NAME.html
index c8529e0830..266f2d0299 100644
--- a/pr/3170/docs/iroh/dns/node_info/constant.IROH_TXT_NAME.html
+++ b/pr/3170/docs/iroh/dns/node_info/constant.IROH_TXT_NAME.html
@@ -1,2 +1,2 @@
-IROH_TXT_NAME in iroh::dns::node_info - Rust
\ No newline at end of file
diff --git a/pr/3170/docs/iroh/dns/node_info/enum.IrohAttr.html b/pr/3170/docs/iroh/dns/node_info/enum.IrohAttr.html
deleted file mode 100644
index 3ca997898b..0000000000
--- a/pr/3170/docs/iroh/dns/node_info/enum.IrohAttr.html
+++ /dev/null
@@ -1,48 +0,0 @@
-IrohAttr in iroh::dns::node_info - Rust
\ No newline at end of file
diff --git a/pr/3170/docs/iroh/dns/node_info/fn.from_z32.html b/pr/3170/docs/iroh/dns/node_info/fn.from_z32.html
deleted file mode 100644
index f725e9a1f8..0000000000
--- a/pr/3170/docs/iroh/dns/node_info/fn.from_z32.html
+++ /dev/null
@@ -1,2 +0,0 @@
-from_z32 in iroh::dns::node_info - Rust
\ No newline at end of file
diff --git a/pr/3170/docs/iroh/dns/node_info/fn.to_z32.html b/pr/3170/docs/iroh/dns/node_info/fn.to_z32.html
deleted file mode 100644
index 89a8e61c99..0000000000
--- a/pr/3170/docs/iroh/dns/node_info/fn.to_z32.html
+++ /dev/null
@@ -1,2 +0,0 @@
-to_z32 in iroh::dns::node_info - Rust
\ No newline at end of file
diff --git a/pr/3170/docs/iroh/dns/node_info/index.html b/pr/3170/docs/iroh/dns/node_info/index.html
index d45a22095f..597b0280c4 100644
--- a/pr/3170/docs/iroh/dns/node_info/index.html
+++ b/pr/3170/docs/iroh/dns/node_info/index.html
@@ -1,4 +1,4 @@
-iroh::dns::node_info - Rust
Support for handling DNS resource records for dialing by NodeId.
Dialing by NodeId is supported by iroh nodes publishing Pkarr records to DNS
servers or the Mainline DHT. This module supports creating and parsing these records.
DNS records are published under the following names:
@@ -12,8 +12,8 @@ servers or the Mainline DHT. This module supports creating and parsing these re
<origin-domain> is the domain name of the publishing DNS server,
-N0_DNS_NODE_ORIGIN_PROD is the server operated by number0 for production.
-N0_DNS_NODE_ORIGIN_STAGING is the server operated by number0 for testing.
Extension methods for NodeId to encode to and decode from [z32],
+which is the encoding used in [pkarr] domain names.
\ No newline at end of file
diff --git a/pr/3170/docs/iroh/dns/node_info/sidebar-items.js b/pr/3170/docs/iroh/dns/node_info/sidebar-items.js
index 94bdeea4ac..38b541dbae 100644
--- a/pr/3170/docs/iroh/dns/node_info/sidebar-items.js
+++ b/pr/3170/docs/iroh/dns/node_info/sidebar-items.js
@@ -1 +1 @@
-window.SIDEBAR_ITEMS = {"constant":["IROH_TXT_NAME"],"enum":["IrohAttr"],"fn":["from_z32","to_z32"],"struct":["NodeInfo","TxtAttrs"]};
\ No newline at end of file
+window.SIDEBAR_ITEMS = {"constant":["IROH_TXT_NAME"],"struct":["NodeInfo"],"trait":["NodeIdExt"]};
\ No newline at end of file
diff --git a/pr/3170/docs/iroh/dns/node_info/struct.NodeInfo.html b/pr/3170/docs/iroh/dns/node_info/struct.NodeInfo.html
index e11b2ed94c..1fcf1b7679 100644
--- a/pr/3170/docs/iroh/dns/node_info/struct.NodeInfo.html
+++ b/pr/3170/docs/iroh/dns/node_info/struct.NodeInfo.html
@@ -1,31 +1,29 @@
-NodeInfo in iroh::dns::node_info - Rust
Instruments this type with the currentSpan, returning an
diff --git a/pr/3170/docs/iroh/dns/node_info/struct.TxtAttrs.html b/pr/3170/docs/iroh/dns/node_info/struct.TxtAttrs.html
deleted file mode 100644
index 941fafa0e2..0000000000
--- a/pr/3170/docs/iroh/dns/node_info/struct.TxtAttrs.html
+++ /dev/null
@@ -1,65 +0,0 @@
-TxtAttrs in iroh::dns::node_info - Rust
This struct is generic over the key type. When using with String, this will parse
-all attributes. Can also be used with an enum, if it implements FromStr and
-Display.
\ No newline at end of file
diff --git a/pr/3170/docs/iroh/dns/node_info/trait.NodeIdExt.html b/pr/3170/docs/iroh/dns/node_info/trait.NodeIdExt.html
new file mode 100644
index 0000000000..5edbdbf888
--- /dev/null
+++ b/pr/3170/docs/iroh/dns/node_info/trait.NodeIdExt.html
@@ -0,0 +1,9 @@
+NodeIdExt in iroh::dns::node_info - Rust
\ No newline at end of file
diff --git a/pr/3170/docs/iroh/dns/sidebar-items.js b/pr/3170/docs/iroh/dns/sidebar-items.js
index 46815808f2..625d8e9dad 100644
--- a/pr/3170/docs/iroh/dns/sidebar-items.js
+++ b/pr/3170/docs/iroh/dns/sidebar-items.js
@@ -1 +1 @@
-window.SIDEBAR_ITEMS = {"fn":["default_resolver","resolver"],"mod":["node_info"],"trait":["ResolverExt"],"type":["DnsResolver"]};
\ No newline at end of file
+window.SIDEBAR_ITEMS = {"constant":["N0_DNS_NODE_ORIGIN_PROD","N0_DNS_NODE_ORIGIN_STAGING"],"mod":["node_info"],"struct":["DnsResolver"]};
\ No newline at end of file
diff --git a/pr/3170/docs/iroh/dns/struct.DnsResolver.html b/pr/3170/docs/iroh/dns/struct.DnsResolver.html
new file mode 100644
index 0000000000..53db4bb73a
--- /dev/null
+++ b/pr/3170/docs/iroh/dns/struct.DnsResolver.html
@@ -0,0 +1,128 @@
+DnsResolver in iroh::dns - Rust
Create a new DNS resolver with sensible cross-platform defaults.
+
We first try to read the system’s resolver from /etc/resolv.conf.
+This does not work at least on some Androids, therefore we fallback
+to the default ResolverConfig which uses eg. to google’s 8.8.8.8 or 8.8.4.4.
LookupIpStrategy::Ipv4AndIpv6 will wait for ipv6 resolution timeout, even if it is
+not usable on the stack, so we manually query both lookups concurrently and time them out
+individually.
Perform an ipv4 lookup with a timeout in a staggered fashion.
+
From the moment this function is called, each lookup is scheduled after the delays in
+delays_ms with the first call being done immediately. [200ms, 300ms] results in calls
+at T+0ms, T+200ms and T+300ms. The timeout is applied to each call individually. The
+result of the first successful call is returned, or a summary of all errors otherwise.
Perform an ipv6 lookup with a timeout in a staggered fashion.
+
From the moment this function is called, each lookup is scheduled after the delays in
+delays_ms with the first call being done immediately. [200ms, 300ms] results in calls
+at T+0ms, T+200ms and T+300ms. The timeout is applied to each call individually. The
+result of the first successful call is returned, or a summary of all errors otherwise.
Race an ipv4 and ipv6 lookup with a timeout in a staggered fashion.
+
From the moment this function is called, each lookup is scheduled after the delays in
+delays_ms with the first call being done immediately. [200ms, 300ms] results in calls
+at T+0ms, T+200ms and T+300ms. The timeout is applied as stated in
+Self::lookup_ipv4_ipv6. The result of the first successful call is returned, or a
+summary of all errors otherwise.
Looks up node info by DNS name in a staggered fashion.
+
From the moment this function is called, each lookup is scheduled after the delays in
+delays_ms with the first call being done immediately. [200ms, 300ms] results in calls
+at T+0ms, T+200ms and T+300ms. The result of the first successful call is returned, or a
+summary of all errors otherwise.
Looks up node info by NodeId and origin domain name.
+
From the moment this function is called, each lookup is scheduled after the delays in
+delays_ms with the first call being done immediately. [200ms, 300ms] results in calls
+at T+0ms, T+200ms and T+300ms. The result of the first successful call is returned, or a
+summary of all errors otherwise.
\ No newline at end of file
diff --git a/pr/3170/docs/iroh/dns/trait.ResolverExt.html b/pr/3170/docs/iroh/dns/trait.ResolverExt.html
deleted file mode 100644
index 619173c968..0000000000
--- a/pr/3170/docs/iroh/dns/trait.ResolverExt.html
+++ /dev/null
@@ -1,128 +0,0 @@
-ResolverExt in iroh::dns - Rust
Perform an ipv4 lookup with a timeout in a staggered fashion.
-
From the moment this function is called, each lookup is scheduled after the delays in
-delays_ms with the first call being done immediately. [200ms, 300ms] results in calls
-at T+0ms, T+200ms and T+300ms. The timeout is applied to each call individually. The
-result of the first successful call is returned, or a summary of all errors otherwise.
Perform an ipv6 lookup with a timeout in a staggered fashion.
-
From the moment this function is called, each lookup is scheduled after the delays in
-delays_ms with the first call being done immediately. [200ms, 300ms] results in calls
-at T+0ms, T+200ms and T+300ms. The timeout is applied to each call individually. The
-result of the first successful call is returned, or a summary of all errors otherwise.
Race an ipv4 and ipv6 lookup with a timeout in a staggered fashion.
-
From the moment this function is called, each lookup is scheduled after the delays in
-delays_ms with the first call being done immediately. [200ms, 300ms] results in calls
-at T+0ms, T+200ms and T+300ms. The timeout is applied as stated in
-Self::lookup_ipv4_ipv6. The result of the first successful call is returned, or a
-summary of all errors otherwise.
Looks up node info by DNS name in a staggered fashion.
-
From the moment this function is called, each lookup is scheduled after the delays in
-delays_ms with the first call being done immediately. [200ms, 300ms] results in calls
-at T+0ms, T+200ms and T+300ms. The result of the first successful call is returned, or a
-summary of all errors otherwise.
Looks up node info by NodeId and origin domain name.
-
From the moment this function is called, each lookup is scheduled after the delays in
-delays_ms with the first call being done immediately. [200ms, 300ms] results in calls
-at T+0ms, T+200ms and T+300ms. The result of the first successful call is returned, or a
-summary of all errors otherwise.
\ No newline at end of file
diff --git a/pr/3170/docs/iroh/dns/type.DnsResolver.html b/pr/3170/docs/iroh/dns/type.DnsResolver.html
deleted file mode 100644
index 1983fa4fbc..0000000000
--- a/pr/3170/docs/iroh/dns/type.DnsResolver.html
+++ /dev/null
@@ -1,72 +0,0 @@
-DnsResolver in iroh::dns - Rust
LookupIpStrategy::Ipv4AndIpv6 will wait for ipv6 resolution timeout, even if it is
-not usable on the stack, so we manually query both lookups concurrently and time them out
-individually.
Perform an ipv4 lookup with a timeout in a staggered fashion.
-
From the moment this function is called, each lookup is scheduled after the delays in
-delays_ms with the first call being done immediately. [200ms, 300ms] results in calls
-at T+0ms, T+200ms and T+300ms. The timeout is applied to each call individually. The
-result of the first successful call is returned, or a summary of all errors otherwise.
Perform an ipv6 lookup with a timeout in a staggered fashion.
-
From the moment this function is called, each lookup is scheduled after the delays in
-delays_ms with the first call being done immediately. [200ms, 300ms] results in calls
-at T+0ms, T+200ms and T+300ms. The timeout is applied to each call individually. The
-result of the first successful call is returned, or a summary of all errors otherwise.
Race an ipv4 and ipv6 lookup with a timeout in a staggered fashion.
-
From the moment this function is called, each lookup is scheduled after the delays in
-delays_ms with the first call being done immediately. [200ms, 300ms] results in calls
-at T+0ms, T+200ms and T+300ms. The timeout is applied as stated in
-[Self::lookup_ipv4_ipv6]. The result of the first successful call is returned, or a
-summary of all errors otherwise.
Looks up node info by DNS name in a staggered fashion.
-
From the moment this function is called, each lookup is scheduled after the delays in
-delays_ms with the first call being done immediately. [200ms, 300ms] results in calls
-at T+0ms, T+200ms and T+300ms. The result of the first successful call is returned, or a
-summary of all errors otherwise.
Looks up node info by NodeId and origin domain name.
-
From the moment this function is called, each lookup is scheduled after the delays in
-delays_ms with the first call being done immediately. [200ms, 300ms] results in calls
-at T+0ms, T+200ms and T+300ms. The result of the first successful call is returned, or a
-summary of all errors otherwise.
\ No newline at end of file
diff --git a/pr/3170/docs/iroh/endpoint/constant.ENV_FORCE_STAGING_RELAYS.html b/pr/3170/docs/iroh/endpoint/constant.ENV_FORCE_STAGING_RELAYS.html
index 3013e4f030..7cef53a2c3 100644
--- a/pr/3170/docs/iroh/endpoint/constant.ENV_FORCE_STAGING_RELAYS.html
+++ b/pr/3170/docs/iroh/endpoint/constant.ENV_FORCE_STAGING_RELAYS.html
@@ -1,2 +1,2 @@
-ENV_FORCE_STAGING_RELAYS in iroh::endpoint - Rust
Environment variable to force the use of staging relays.
\ No newline at end of file
diff --git a/pr/3170/docs/iroh/endpoint/enum.DirectAddrType.html b/pr/3170/docs/iroh/endpoint/enum.DirectAddrType.html
index 19d3f0c0da..71aab4a8c0 100644
--- a/pr/3170/docs/iroh/endpoint/enum.DirectAddrType.html
+++ b/pr/3170/docs/iroh/endpoint/enum.DirectAddrType.html
@@ -1,4 +1,4 @@
-DirectAddrType in iroh::endpoint - Rust
pub enum DirectAddrType {
Unknown,
Local,
Stun,
@@ -20,16 +20,16 @@ get a publicly routable direct address.
It is possible to configure iroh to bound to a specific port and independently
configure the router to forward this port to the iroh node. This indicates a
situation like this, which still uses STUN to discover the public address.
If the IROH_FORCE_STAGING_RELAYS environment variable is non empty, it will return RelayMode::Staging.
Otherwise, it will return RelayMode::Default.
\ No newline at end of file
diff --git a/pr/3170/docs/iroh/endpoint/fn.force_staging_infra.html b/pr/3170/docs/iroh/endpoint/fn.force_staging_infra.html
index 07d9765b91..d5b0c733db 100644
--- a/pr/3170/docs/iroh/endpoint/fn.force_staging_infra.html
+++ b/pr/3170/docs/iroh/endpoint/fn.force_staging_infra.html
@@ -1,2 +1,2 @@
-force_staging_infra in iroh::endpoint - Rust
Returns true if the use of staging relays is forced.
\ No newline at end of file
diff --git a/pr/3170/docs/iroh/endpoint/fn.make_server_config.html b/pr/3170/docs/iroh/endpoint/fn.make_server_config.html
index 8557d88fe9..cb5e3ff997 100644
--- a/pr/3170/docs/iroh/endpoint/fn.make_server_config.html
+++ b/pr/3170/docs/iroh/endpoint/fn.make_server_config.html
@@ -1,4 +1,4 @@
-make_server_config in iroh::endpoint - Rust
The Endpoint allows establishing connections to other iroh nodes.
The Endpoint is the main API interface to manage a local iroh node. It allows
connecting to and accepting connections from other nodes. See the module docs for
more details on how iroh connections work.
diff --git a/pr/3170/docs/iroh/endpoint/struct.Accept.html b/pr/3170/docs/iroh/endpoint/struct.Accept.html
index b07cfe6a85..7d722c7b42 100644
--- a/pr/3170/docs/iroh/endpoint/struct.Accept.html
+++ b/pr/3170/docs/iroh/endpoint/struct.Accept.html
@@ -1,6 +1,6 @@
-Accept in iroh::endpoint - Rust
Sets the relay servers to assist in establishing connectivity.
Relay servers are used to establish initial connection with another iroh node.
They also perform various functions related to hole punching, see the crate docs
for more details.
@@ -26,15 +26,15 @@ for more details.
When using RelayMode::Custom, the provided relay_map must contain at least one
configured relay node. If an invalid RelayMap is provided bind
will result in an error.
Available on crate feature discovery-pkarr-dht only.
Configures the endpoint to also use the mainline DHT with default settings.
This is equivalent to adding a crate::discovery::pkarr::dht::DhtDiscovery
with default settings. Note that DhtDiscovery has various more advanced
configuration options. If you need any of those, you should manually
create a DhtDiscovery and add it with Builder::add_discovery.
The transport config contains parameters governing the QUIC state machine.
If unset, the default config is used. Default values should be suitable for most
internet applications. Applications protocols which forbid remotely-initiated
@@ -75,28 +75,29 @@ streams should set max_concurrent_bidi_streams and max_concur
zero.
Please be aware that changing some settings may have adverse effects on establishing
and maintaining direct connections.
By default, all endpoints share a DNS resolver, which is configured to use the
-host system’s DNS configuration. You can pass a custom instance of DnsResolver
-here to use a differently configured DNS resolver for this endpoint.
Sets the proxy url from the environment, in this order:
+
By default, a new DNS resolver is created which is configured to use the
+host system’s DNS configuration. You can pass a custom instance of DnsResolver
+here to use a differently configured DNS resolver for this endpoint, or to share
+a DnsResolver between multiple endpoints.
Enables saving the TLS pre-master key for connections.
This key should normally remain secret but can be useful to debug networking issues
by decrypting captured traffic.
If keylog is true then setting the SSLKEYLOGFILE environment variable to a
filename will result in this file being used to log the TLS pre-master keys.
If all references to a connection (including every clone of the Connection handle,
streams of incoming streams, and the various stream types) have been dropped, then the
connection will be automatically closed with an error_code of 0 and an empty reason. You
@@ -8,29 +8,29 @@ receiving CONNECTION_CLOSE the peer may drop any stream data not yet delivered t
application. Connection::close describes in more detail how to gracefully close a
connection without losing application data.
May be cloned to obtain another handle to the same connection.
Streams are cheap and instantaneous to open unless blocked by flow control. As a
consequence, the peer won’t be notified that a stream has been opened until the
stream is actually used.
Streams are cheap and instantaneous to open unless blocked by flow control. As a
consequence, the peer won’t be notified that a stream has been opened until the
stream is actually used. Calling open_bi then waiting on the RecvStream
without writing anything to SendStream will never succeed.
Important Note: The peer that calls open_bi must write to its SendStream
before the peer Connection is able to accept the stream using
accept_bi(). Calling open_bi then waiting on the RecvStream without
writing anything to the connected SendStream will never succeed.
Pending operations will fail immediately with ConnectionError::LocallyClosed. No
more data is sent to the peer and the peer may drop buffered data upon receiving the
CONNECTION_CLOSE frame.
@@ -51,41 +51,41 @@ endpoint. Once the local side sends a CONNECTION_CLOSE frame in response to call
close the remote endpoint may drop any data it received but is as yet
undelivered to the application, including data that was acknowledged as received to
the local endpoint.
-
Transmits data as an unreliable, unordered application datagram.
Application datagrams are a low-level primitive. They may be lost or delivered out
of order, and data must both fit inside a single QUIC packet and be smaller than
the maximum dictated by the peer.
Computes the maximum size of datagrams that may be passed to send_datagram.
Returns None if datagrams are unsupported by the peer or disabled locally.
This may change over the lifetime of a connection according to variation in the path
MTU estimate. The peer can also enforce an arbitrarily small fixed limit, but if the
peer’s limit is large this is guaranteed to be a little over a kilobyte at minimum.
Not necessarily the maximum size of received datagrams.
Guaranteed to return Some on fully established connections or after
Connecting::handshake_data() succeeds. See that method’s documentations for
details on the returned value.
The dynamic type returned is determined by the configured Session. For the
default rustls session, the return value can be downcast to a
Vec<[rustls::pki_types::CertificateDer]>
Returns the NodeId from the peer’s TLS certificate.
The PublicKey of a node is also known as a NodeId. This PublicKey is
included in the TLS certificate presented during the handshake when connecting.
This function allows you to get the NodeId of the remote node of this
connection.
pub fn export_keying_material(
&self,
output: &mut [u8],
label: &[u8],
@@ -96,14 +96,14 @@ arguments and output buffers of equal length, they will get the
same sequence of bytes in output. These bytes are cryptographically
strong and pseudorandom, and are suitable for use as keying material.
A direct address on which an iroh-node might be contactable.
@@ -7,16 +7,16 @@ contacted. These can come from various sources depending on the network topolog
iroh node, see DirectAddrType for the several kinds of sources.
Controls an iroh node, establishing connections with other nodes.
This is the main API interface to create connections to, and accept connections from
other iroh nodes. The connections are peer-to-peer and encrypted, a Relay server is
used to make the connections reliable. See the [crate docs] for a more detailed
@@ -16,11 +16,11 @@ the peer are created using the Connection::open_uni and Connection::open_bi functions.
Note that due to the light-weight properties of streams a stream will only be accepted
once the initiating peer has sent some data on it.
pub async fn connect(
&self,
node_addr: impl Into<NodeAddr>,
alpn: &[u8],
@@ -41,7 +41,7 @@ connection attempt will fail with an error.
The alpn, or application-level protocol identifier, is also required. The remote
endpoint must support this alpn, otherwise the connection attempt will fail with
an error.
Only connections with the ALPNs configured in Builder::alpns will be accepted.
If multiple ALPNs have been configured the ALPN can be inspected before accepting
the connection using Connecting::alpn.
The returned future will yield None if the endpoint is closed by calling
Endpoint::close.
Informs this Endpoint about addresses of the iroh node.
This updates the local state for the remote node. If the provided NodeAddr
contains a RelayUrl this will be used as the new relay server for this node. If
it contains any new IP endpoints they will also be stored and tried when next
@@ -71,7 +71,7 @@ This provides more flexibility and future proofing.
Returns a Watcher for the RelayUrl of the Relay server used as home relay.
Every endpoint has a home Relay server which it chooses as the server with the
lowest latency out of the configured servers provided by Builder::relay_mode.
This is the server other iroh nodes can use to reliably establish a connection
@@ -111,7 +111,7 @@ some time to connect to find and connect to the home relay server.
let mep = Endpoint::builder().bind().await.unwrap();
let _relay_url = mep.home_relay().initialized().await.unwrap();
Returns a Watcher for the direct addresses of this Endpoint.
The direct addresses of the Endpoint are those that could be used by other
iroh nodes to establish direct connectivity, depending on the network
situation. The yielded lists of direct addresses contain both the locally-bound
@@ -134,10 +134,10 @@ recently discovered direct addresses.
let mep = Endpoint::builder().bind().await.unwrap();
let _addrs = mep.direct_addresses().initialized().await.unwrap();
Returns information about the remote node identified by a NodeId.
The Endpoint keeps some information about remote iroh nodes, which it uses to find
the best path to a node. Having information on a remote node, however, does not mean we have
ever connected to it to or even whether a connection is even possible. The information about a
@@ -146,14 +146,14 @@ calls may return different information. Furthermore, node information may even b
completely evicted as it becomes stale.
The Endpoint keeps some information about remote iroh nodes, which it uses to find
the best path to a node. This returns all the nodes it knows about, regardless of whether a
connection was ever made or is even possible.
Returns a Watcher that reports the current connection type and any changes for
given remote node.
This watcher allows observing a stream of ConnectionType items by calling
Watcher::stream(). If the underlying connection to a remote node changes, it will
@@ -172,11 +172,11 @@ recently connected to this node id but previous methods of reaching the node hav
become inaccessible.
On many systems iroh is able to detect network changes by itself, however
some systems like android do not expose this functionality to native code.
Android does however provide this functionality to Java code. This
@@ -184,7 +184,7 @@ function allows for notifying iroh of any potential network changes like
this.
Even when the network did not change, or iroh was already able to detect
the network change itself, there is no harm in calling this function.
This will close any remaining open Connections with an error code
of 0 and an empty reason. Though it is best practice to close those
explicitly before with a custom error code and reason.
@@ -195,8 +195,8 @@ on the connection. Once all connections are closed or timed out, the magic socke
Be aware however that the underlying UDP sockets are only closed
on Drop, bearing in mind the Endpoint is only dropped once all the clones
are dropped.
Attempts to accept this incoming connection (an error may still occur).
Errors occurring here are likely not caused by the application or remote. The QUIC
connection listens on a normal UDP socket and any reachable network endpoint can
send datagrams to it, solicited or not. Even if the first few bytes look like a
QUIC packet, it might not even be a QUIC packet that is being received.
Thus it is common to simply log the errors here and accept them as something which
can happen.
where
diff --git a/pr/3170/docs/iroh/struct.NodeAddr.html b/pr/3170/docs/iroh/struct.NodeAddr.html
index 52f844a225..9f366d3aff 100644
--- a/pr/3170/docs/iroh/struct.NodeAddr.html
+++ b/pr/3170/docs/iroh/struct.NodeAddr.html
@@ -44,8 +44,8 @@ whenever a connection to other nodes needs to be established.
Tests for !=. The default implementation is almost always sufficient,
diff --git a/pr/3170/docs/iroh/struct.PublicKey.html b/pr/3170/docs/iroh/struct.PublicKey.html
index 9c21751546..76aeebd528 100644
--- a/pr/3170/docs/iroh/struct.PublicKey.html
+++ b/pr/3170/docs/iroh/struct.PublicKey.html
@@ -1,4 +1,4 @@
-PublicKey in iroh - Rust
\ No newline at end of file
diff --git a/pr/3170/docs/iroh/test_utils/fn.run_relay_server.html b/pr/3170/docs/iroh/test_utils/fn.run_relay_server.html
index aad6ef9378..1ff33b76e1 100644
--- a/pr/3170/docs/iroh/test_utils/fn.run_relay_server.html
+++ b/pr/3170/docs/iroh/test_utils/fn.run_relay_server.html
@@ -1,4 +1,4 @@
-run_relay_server in iroh::test_utils - Rust
Runs a relay server with STUN and QUIC enabled suitable for tests.
The returned Url is the url of the relay server in the returned RelayMap.
When dropped, the returned [Server] does will stop running.
\ No newline at end of file
diff --git a/pr/3170/docs/iroh/test_utils/fn.run_relay_server_with.html b/pr/3170/docs/iroh/test_utils/fn.run_relay_server_with.html
index afa1ca0a5b..624f90fe60 100644
--- a/pr/3170/docs/iroh/test_utils/fn.run_relay_server_with.html
+++ b/pr/3170/docs/iroh/test_utils/fn.run_relay_server_with.html
@@ -1,4 +1,4 @@
-run_relay_server_with in iroh::test_utils - Rust
Runs a relay server with STUN enabled suitable for tests.
The returned Url is the url of the relay server in the returned RelayMap.
When dropped, the returned [Server] does will stop running.
\ No newline at end of file
diff --git a/pr/3170/docs/iroh/test_utils/index.html b/pr/3170/docs/iroh/test_utils/index.html
index 16c5049509..46e5637988 100644
--- a/pr/3170/docs/iroh/test_utils/index.html
+++ b/pr/3170/docs/iroh/test_utils/index.html
@@ -1,2 +1,2 @@
-iroh::test_utils - Rust
Runs a relay server with STUN enabled suitable for tests.
\ No newline at end of file
diff --git a/pr/3170/docs/iroh/test_utils/sidebar-items.js b/pr/3170/docs/iroh/test_utils/sidebar-items.js
index 80a5e2fff6..e802792f51 100644
--- a/pr/3170/docs/iroh/test_utils/sidebar-items.js
+++ b/pr/3170/docs/iroh/test_utils/sidebar-items.js
@@ -1 +1 @@
-window.SIDEBAR_ITEMS = {"fn":["create_dns_resolver","run_relay_server","run_relay_server_with","run_relay_server_with_stun"],"struct":["CleanupDropGuard","DnsPkarrServer"]};
\ No newline at end of file
+window.SIDEBAR_ITEMS = {"fn":["run_relay_server","run_relay_server_with","run_relay_server_with_stun"],"struct":["CleanupDropGuard","DnsPkarrServer"]};
\ No newline at end of file
diff --git a/pr/3170/docs/iroh/test_utils/struct.CleanupDropGuard.html b/pr/3170/docs/iroh/test_utils/struct.CleanupDropGuard.html
index a49e2576d8..ce45b4d5e0 100644
--- a/pr/3170/docs/iroh/test_utils/struct.CleanupDropGuard.html
+++ b/pr/3170/docs/iroh/test_utils/struct.CleanupDropGuard.html
@@ -1,7 +1,7 @@
-CleanupDropGuard in iroh::test_utils - Rust
\ No newline at end of file
diff --git a/pr/3170/docs/iroh_net_report/fn.bind_local_stun_socket.html b/pr/3170/docs/iroh_net_report/fn.bind_local_stun_socket.html
index d40bba3498..2565cf0810 100644
--- a/pr/3170/docs/iroh_net_report/fn.bind_local_stun_socket.html
+++ b/pr/3170/docs/iroh_net_report/fn.bind_local_stun_socket.html
@@ -1,4 +1,4 @@
-bind_local_stun_socket in iroh_net_report - Rust
Test if IPv6 works at all, or if it’s been hard disabled at the OS level.
\ No newline at end of file
diff --git a/pr/3170/docs/iroh_net_report/index.html b/pr/3170/docs/iroh_net_report/index.html
index 7261df9435..605bb25bc5 100644
--- a/pr/3170/docs/iroh_net_report/index.html
+++ b/pr/3170/docs/iroh_net_report/index.html
@@ -1,4 +1,4 @@
-iroh_net_report - Rust