Crate ftnet_utils

Source

Re-exports§

pub use get_endpoint::get_endpoint;
pub use http::ProxyResult;
pub use protocol::APNS_IDENTITY;
pub use protocol::Protocol;

Modules§

get_endpoint
http
protocol

Macros§

bad_request
not_found
server_error

Structs§

HttpConnectionManager
KeyringSecretStore

Traits§

SecretStore
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§

FrameReader
HttpConnectionPool
HttpConnectionPools
IDMap
IDMap stores the fastn port and the endpoint for every identity
PeerStreamSenders
PeerConnections stores the iroh connections for every peer.