AF 表示ADDRESS FAMILY 地址族PF 表示PROTOCOL FAMILY 协议族但这两个宏定义是一样的所以使用哪个都没有关系Winsock2.h中#define AF_INET 0#define PF_INET AF_INET所以在windows中AF_INET与PF_INET完全一样而在Unix/Linux系统中
...
There are two kinds of nodes on a Storm cluster: the master node and the worker nodes.
有两种节点,主节点和worker节点
主节点,Nimbus:
Nimbus is responsible for distributing code around the cluster, assigning tasks to machines, and monitoring for failures.
worker节点,Supervisor:
The supervisor listens for work assigned to its machine and starts and stops worker processe
...
文件结构:utils.py中定义的是些 General Utilities,通用工具集和数据结构
1.对序列进行分组的函数(生成器的很好使用,值得借鉴)group12345678910111213141516171819def group(seq, size): def take(seq, n): for i
...