Re-exports§
pub use get_endpoint::get_endpoint;
pub use http::ProxyResult;
pub use protocol::APNS_IDENTITY;
pub use protocol::Protocol;
Modules§
Macros§
Structs§
Traits§
- Secret
Store - A simple secret store to manage iroh::SecretKey
Functions§
- accept_
bi - frame_
reader - get_
remote_ id52 - get_
stream - get_stream tries to check if the bidirectional stream is healthy, as simply opening a bidirectional stream, or even simply writing on it does not guarantee that the stream is open. only the read request times out to tell us something is wrong. this is why get_stream takes the protocol as well, as every outgoing bi-direction stream must have a protocol. it sends the protocol and waits for an ack. if the ack is not received within a certain time, it assumes the connection is not healthy, and tries to recreate the connection.
- http_
to_ peer - id52_
to_ public_ key - peer_
to_ http - peer_
to_ tcp - this is the tcp proxy.
- public_
key_ to_ id52 - read_
or_ create_ key
Type Aliases§
- Frame
Reader - Http
Connection Pool - Http
Connection Pools - IDMap
- IDMap stores the fastn port and the endpoint for every identity
- Peer
Stream Senders - PeerConnections stores the iroh connections for every peer.