fuimaz / spserver

Automatically exported from code.google.com/p/spserver
Other
0 stars 0 forks source link

spserver http server 怎么给异步读一个大文件再发送给客户端呢 #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
stephen,您好!

我是一名学生,最近想用spserver iocphttp做个web server,
virtual void handle( SP_HttpRequest * request, SP_HttpResponse * response )
这个怎么改才能实现异步读文件,在发送数据呢?

还是需要另外写?代码包装的很深,不知道从哪做起?请指��
�下!谢谢

Original issue reported on code.google.com by mkchu...@yahoo.co.jp on 7 May 2009 at 12:35

GoogleCodeExporter commented 9 years ago
spserver 
使用线程池来处理业务,目的就是希望在处理业务的时候能��
�用同步的方式,可以简化
业务的实现代码。

如果希望用异步的方式来处理业务,那么不需要使用 spserver 
,直接用 iocp 就够了。

Original comment by stephen....@gmail.com on 7 May 2009 at 3:05