Sharing TLS stream


I'm trying to copy a TLS stream (native-tls) but since that is not allowed I'm not sure how to continue.
I want to be able to have a loop in a thread that reads the messages and to be able to share the TLS stream in a struct to write messages to it from other places.

What would be the best way to do this?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.