Flush a socket in Python

时间秒杀一切 提交于 2019-12-04 03:59:42

问题


Is there a way in python to flush a socket once a request has been sent and the information has been obtained correctly?

I have a socket that is used to send different commands at different times, so I was just wondering if this was possible.

Any help would be greatly appreciated.


回答1:


In general no is the answer - you can't flush a TCP socket. All that is under the control of TCP. Take a look at this question for some more information



来源:https://stackoverflow.com/questions/10511672/flush-a-socket-in-python

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