What is the difference between tokio and tokio_core?
I am using tokio runtime and I need to use connect_stream from tokio_core so I am a bit confused
The tokio-core
crate is a very very old and deprecated version of Tokio. The current version is tokio
version 0.2.x
.
If you're trying to create a Tokio TcpStream
from a manually configured socket, the steps should be socket2::Socket::into_tcp_stream()
→ tokio::net::TcpStream::from_std()
. Don't use tokio-core
at all.
2 Likes
thank you all
@NikosEfthias Note that this exists: stream.rs.html -- source
1 Like
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.