Some request requires SNI for socket connection. As understand I should create SocketConnectable from Uri (host) but can’t find example
Found NetworkAddress implement SocketConnectable
so it works for my needs:
let connectable = gtk::gio::NetworkAddress::new(
&uri.host().unwrap(),
1965
);
client.connect_async(
&connectable,
Some(&cancellable),
move |connect| match connect {
// ..
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.