localsocket as a two-way on windows #30
Answered
by
kotauskas
KawaiiSelbst
asked this question in
Q&A
-
|
Is it possible to use localsocket as a two-way on windows with tokio, or will you have to make 2 sockets for this? |
Beta Was this translation helpful? Give feedback.
Answered by
kotauskas
Jan 3, 2023
Replies: 1 comment 2 replies
-
|
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
kotauskas
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
LocalSocketis actually duplex (fancy term for "two-way"/"bidirectional") on all platforms, as is the Tokio version of it, because Unix systems don't support having them be unidirectional. You can split the Tokio ones to perform reads and writes concurrently; update 2.0.0 will add splitting to non-async local sockets as well.