Re-exports§
pub use get_endpoint::get_endpoint;pub use http::ProxyResult;pub use protocol::APNS_IDENTITY;pub use protocol::Protocol;pub use protocol::ProtocolHeader;pub use secret::ID52_FILE;pub use secret::SECRET_KEY_FILE;pub use secret::generate_and_save_key;pub use secret::generate_secret_key;pub use secret::get_secret_key;pub use secret::read_or_create_key;
Modules§
- dot_
kulfi - The kulfi folder
- get_
endpoint - http
- protocol
- secret
Macros§
Structs§
Constants§
Functions§
- accept_
bi - accept_
bi_ any - accept_
bi_ with - 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.
- global_
iroh_ endpoint - http_
to_ peer - http_
to_ peer_ non_ streaming - Use http_to_peer unless you have a clear reason
- id52_
to_ public_ key - mkdir
- next_
json - Read until a newline character is encountered, then deserialize the buffer as JSON
- next_
string - Read until a newline character is encountered, then deserialize the buffer as JSON
- peer_
to_ http - peer_
to_ tcp - this is the tcp proxy.
- peer_
to_ udp - UDP proxy over iroh bidirectional streams.
- ping
- pipe_
tcp_ stream_ over_ iroh - public_
key_ to_ id52 - read_
framed_ datagram - Read a length-prefixed datagram from the iroh recv stream.
- tcp_
to_ peer - udp_
to_ peer - Accept UDP datagrams on a local port and forward them over iroh to a remote peer.
- write_
framed_ datagram - Write a length-prefixed datagram to the iroh send stream.
Type Aliases§
- 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.