2

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

Community
  • 1
  • 1
dragostis
  • 2,574
  • 2
  • 20
  • 39

1 Answers1

3

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

starblue
  • 55,348
  • 14
  • 97
  • 151