socket程序,文件发送和接收总是出问题文件发送函数void filesend(FILE* pfile,SOCKET sock){ int nNumRead = 0; char sendbuf[65535]; while(!feof(pfile)) { //memset(sendbuf,'\0',sizeof(sendbuf)); nNumRead = fread( sendbuf, 1, 65535, pfile ); int sendsum =send( sock, sendbuf, nNumRead, 0 ); cout<<endl<<"sendsum="<<sendsum<<endl; //Sleep(20); }}文件接收函数void filereceive(FILE* pfile,SOCKET sock){ char receivebuf[65535]; int nNumRead = 0; while( true ) { nNumRead=0; nNumRead = recv( sock, receivebuf, 65535, 0 ); if ( 0 == nNumRead ) break; fwrite(receivebuf, 1, nNumRead, pfile); }}上面程序运行时,发送文件程序运行完了,但另一端的接收文件部分程序暂停一样,不往后执行。请哪位朋友帮我看看问题在哪里?谢谢