用Python刷新套接字 [英] Flush a socket in Python
本文介绍了用Python刷新套接字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在发送请求并正确获取信息后,python中是否有一种刷新套接字的方法?
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.
任何帮助将不胜感激.
推荐答案
通常没有答案-您无法刷新TCP套接字.所有这些都在TCP的控制之下.看看此问题以获取更多信息
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
这篇关于用Python刷新套接字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文