2

This previous answer does not work anymore since TCPStream does not have clone() anymore.

Community
  • 1
  • 1
dragostis
  • 2,419
  • 1
  • 18
  • 36

1 Answers1

3

You can use try_clone to get multiple handles for the stream.

starblue
  • 53,481
  • 14
  • 94
  • 148