草庐IT

关于C#:为什么客户端忙于接收数据时select()有时会超时

Whyselect()timeoutssometimeswhentheclientisbusyreceivingdata我已经编写了简单的C/S应用程序来测试非阻塞套接字的特性,这里有一些关于服务器和客户端的简要信息://OnlinuxTheserverthreadwillsend//afiletotheclientusingnon-blockingsocket   void*SendFileThread(void*param){  CFile*theFile=(CFile*)param;  intsockfd=theFile->GetSocket();  set_non_blocking(s
12