unix8net / win32_block_uploadfile Goto Github PK
View Code? Open in Web Editor NEWwin32平台下非阻塞上传文件动态链接库工程
win32平台下非阻塞上传文件动态链接库工程
======================================================================== 使用帮助文档 ======================================================================== 1.定义一个UploadFile对象 2.使用CreateSendFile这个工厂方法返回ISendFileInterface*类型对象 3.你可以直接定义一个ISendFileInterface*指针来接收该返回值,通过多态实现功能;也可以定义一个CFileClient*来接收该返回值 4.ISendFileInterface接口中函数注释 4.1 ChoseFile函数 返回值:出错返回0,正常返回文件大小 参数1:文件名 参数2:自己命名的文件类型 4.2 Connect函数 返回值:返回连接状态,true/false 参数1:指定对端的地址。 参数2:端口 4.3 SendFile函数 返回值:0-发送完成,-1出错 参数:PTransInfo,记录文件上传状态,其中PTransInfo定义如下 typedef struct { unsigned int uploaded; //已经上传的字节数 bool finished; //上传是否完成 }TransInfo,*PTransInfo; 5.传输完成后,使用DeleteSendFile删除创建的ISendFileInterface*对象
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.