class file_send { public: SOCKET send_s; //The socket that used for sending which is established previously char * filename; //The full path of the file that the client requested void send_file() { percentage=0; FILE * pFile=fopen(filename,"rb"); fseek(pFile,0,SEEK_END); flen=ftell(pFile); cout<<"File length is :"<<flen<<endl; rewind(pFile); partsnum=flen/BUF_LEN+1; send(send_s,(char
WinSock实现的大文件传输
最新推荐文章于 2021-04-14 23:50:35 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)