while(1) { FD_ZERO(&fd); FD_SET(CientSocket, &fd); tv.tv_sec=2; tv.tv_usec=0; Ret=select(0, &fd, NULL, NULL, &tv); cout<<"Ret="<<Ret<<endl; }
while(1) { FD_ZERO(&fd);
FD_SET(CientSocket, &fd);
tv.tv_sec=2; tv.tv_usec=0;
Ret=select(0, &fd, NULL, NULL, &tv);
cout<<"Ret="<<Ret<<endl; }
婷婷同学_