in reply to sharing (io::socket) objects with threads

It may be possible to do what you want to do, though definitely not the way you are currently trying to do it.

However, you've described a very elaborate and involved program, far too elaborate to be able to visualise from a brief textual description. And far to complex to expect anyone trying to help you to re-create it from scratch from that description.

Upshot: If you want to get any help with this, you are going to have to post the code you have so far in it's entirety. Any thing less is expecting way too much of potential helpers.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."
  • Comment on Re: sharing (io::socket) objects with threads