trust_dns_rustls

Function tls_client_connect_with_bind_addr

Source
pub fn tls_client_connect_with_bind_addr<S>(
    name_server: SocketAddr,
    bind_addr: Option<SocketAddr>,
    dns_name: String,
    client_config: Arc<ClientConfig>,
) -> (Pin<Box<dyn Future<Output = Result<TcpClientStream<AsyncIoTokioAsStd<TlsStream<AsyncIoStdAsTokio<S>>>>, ProtoError>> + Unpin + Send>>, BufDnsStreamHandle)
where S: Connect,
Expand description

Creates a new TlsStream to the specified name_server connecting from a specific address.

ยงArguments

  • name_server - IP and Port for the remote DNS resolver
  • bind_addr - IP and port to connect from
  • dns_name - The DNS name, Subject Public Key Info (SPKI) name, as associated to a certificate