2016-08-31

深入理解 tornado 之底层 ioloop 实现

Python 第三方库安装技巧

Python 多线程

Socket通信原理简介

Tornado异步笔记(一)--- 异步任务

Tornado源码阅读(一) --- IOLoop之创建ioloop

Json概述以及python对json的相关操作

 

Tornado

Messenger    信息员

heartbeat     心跳
interval        间隔
revert          回复
exchanges   交流
queue          队列
change current working directory to where this main file resides  real signature unknown;改变当前工作目录到这个主文件所在的真正的识别标志未知;

restored from __doc__从__doc__恢复

icon 图标,偶像
The Messenger class defines a high level interface for sending and receiving Messages. Every Messenger contains a single logical queue of incoming messages and a single logical queue of outgoing messages.

每个信使都包含一个单一的传入消息的逻辑队列和一个传出消息的单个逻辑队列。

 

These messages in these queues may be destined for, or originate from, a variety of addresses.

这些队列中的这些消息可能是注定的,或源于各种不同的地址。

The messenger interface is single-threaded. All methods except one (interrupt) are intended to be used from within the messenger thread.

信使接口是单线程的。除了一个(中断)的所有方法都打算在信使线程中使用。

bound 跳跃
location 位置
connection连接
Run the example consumer by connecting to RabbitMQ and then starting the IOLoop to block and allow the SelectConnection to operate.leaves queue_name as None to create send only connections

通过连接到RabbitMQ然后开始ioloop阻止和允许selectconnection到operate.leaves queue_name不创造只发送连接运行示例的消费

try  尝试
except 除..。之外 除非;[口语]要不是;除…以外
self 自己

posted @ 2016-08-31 14:55  SuGuolin  阅读(138)  评论(0编辑  收藏  举报