- 授权协议: MIT
- 开发语言: Python
- 操作系统: 跨平台
- 软件首页: http://asyncoro.sourceforge.net/
- 软件文档: http://asyncoro.sourceforge.net/discoro.html
软件介绍
asyncoro 库是python的一个标准库,它是一个异步socket的包装。我们操作网络的时候可以直接使用socket等底层的库,但是 asyncoro使得我们可以更加方便的操作网络,避免直接使用socket,select,poll等工具时需要面对的复杂。
这个库很简单,包含了一个函数和一个类
* loop()函数
* dispatcher基类
需要注意的是,loop函数是全局的,不是dispatcher的方法
每一个从dispatcher继承的类的对象,都可以看作我们需要处理的一个socket,可以是TCP连接或者UDP,甚至是其它不常用的。使用容易,我们需要定义一个类,它继承dispatcher,然后我们重写(覆盖)一些方法就可以了。
The Haskell School of Expression
Paul Hudak / Cambridge University Press / 2000-01 / USD 95.00
Functional programming is a style of programming that emphasizes the use of functions (in contrast to object-oriented programming, which emphasizes the use of objects). It has become popular in recen......一起来看看 《The Haskell School of Expression》 这本书的介绍吧!