How to read and write to a TCPStream simultaneously?

此生再无相见时 提交于 2021-02-04 07:56:30

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/35969943/how-to-read-and-write-to-a-tcpstream-simultaneously

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!