use iroh::Endpoint;
pub(in crate::endpoint) struct Transport {
pub(in crate::endpoint) ep: Endpoint,
pub(in crate::endpoint) node_id_str: String,
pub(in crate::endpoint) scoped_dns_compat: super::scoped_dns_compat::ScopedDnsCompat,
}
impl Transport {
pub(in crate::endpoint) async fn close(&self) {
self.scoped_dns_compat.shutdown().await;
self.ep.close().await;
}
#[cfg(test)]
pub(in crate::endpoint) fn scoped_dns_proxy_count(&self) -> usize {
self.scoped_dns_compat.proxy_count()
}
#[cfg(test)]
pub(in crate::endpoint) fn running_scoped_dns_proxy_count(&self) -> usize {
self.scoped_dns_compat.running_proxy_count()
}
}