免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1387 | 回复: 0
打印 上一主题 下一主题

学习文档 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-03-26 15:10 |只看该作者 |倒序浏览
只有研究其原理才能真正弄明白其中的道理的。
比如说ASP、PHP、之类的运行在服务器端就只管服务器的东西了其他的一概不要管它。
1.The normal model when using the Twisted framework is the third model:
non-blocking calls.
2. In asynchronous programming, a function requests the
data, and lets the library call the callback function when the data is
ready.
3. it
may also return before it is possible to detect errors: failed connections,
erroneous data, protocol errors, and so on. Just as you can add callbacks to a
Deferred which it calls when the data you are expecting is available, you can
add error handlers ('errbacks') to a Deferred for it to call when an error
occurs and it cannot obtain the data:
4.learnt that the Twisted framework supports concurrency in the form of
asynchronous calls;类似于AJAX的异步调用模式。
5.Twisted Internet contains the various interfaces to the reactor
API, whose usage is documented in the low-level chapter. Those APIs
are
IReactorCore
,
IReactorTCP
,
IReactorSSL
,
IReactorUNIX
,
IReactorUDP
,
IReactorTime
,
IReactorProcess
,
IReactorMulticast
and
IReactorThreads
.
The reactor APIs allow non-persistent calls to be made.
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/84280/showart_1880466.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP