试了一下,目前已知的 让socket发送流中的数据 只有一下三种方式
1.shutDown流2.close流/close socket3.sendUrgentData
前两种都会socket对象无法再次使用,如果想多次发送数据,只能用第3种。有更优雅的方式实现socket重用吗?
相关分类