Request-Reply模式
对于client来说必须严格按照先调用zmq_send()
函数,然后调用zmq_recv()函数的顺序来执行对于server来说,执行时序相反如果不按照这个时序来,可能会发生错误,或者信息丢失
可以有多个client同时连接到server
Publish-Subscribe模式
SUB so...
分类:
其他好文 时间:
2015-03-18 15:59:01
阅读次数:
196
Recursive method can be unstand easily:1. Assume we get the sub node with this transition. So we need to make the current node.2. As the symmetic, the...
分类:
其他好文 时间:
2015-03-18 10:12:06
阅读次数:
128
Use lMax get the maximum value of a sub SINGLE branch (left branch or right branch or just current node).Use gMax get the maximum value of the whole s...
分类:
其他好文 时间:
2015-03-18 08:56:01
阅读次数:
190
1、问题描述安装openssh-server时,检测到系统中安装有vsftpd,两者不兼容,需要将vsftpd卸载。在卸载时出现Sub-process /usr/bin/dpkg returned an error code (1)2、解决方案由于之前在安装 vsftpd 时,新建了一个临时的 ft...
分类:
其他好文 时间:
2015-03-17 19:43:14
阅读次数:
117
Sub Main() Dim a() As String = {"一", "五", "3", "4"} Dim b() As String = {"二", "3", "4", "七", "八", "九"} Dim c() = a.Union(b).Dist...
分类:
编程语言 时间:
2015-03-17 13:57:03
阅读次数:
152
import redef match_sxz(noun): return re.search('[sxz]$',noun)def apply_sxz(noun): return re.sub('$','es',noun)def match_h(noun): return re.se...
分类:
编程语言 时间:
2015-03-17 10:22:38
阅读次数:
142
1.对字符中的“()”的内容剪切; 1 local num1 = string.find(str1,"(");2 local num2 = string.find(str1,")");3 4 local str2 = string.sub(str1,0,num1...
分类:
其他好文 时间:
2015-03-16 19:01:29
阅读次数:
115
一、选择需要加密的单元格,右键→设置单元格格式→保护→锁定;
二、按Alt+F11键进入VBE环境,在左侧的相应sheet名称上(如sheet1)右键→查看代码;
三、选择Worksheet的SelectionChange事件,写入如下代码:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
On Error Resum...
分类:
其他好文 时间:
2015-03-16 16:29:34
阅读次数:
132
来源:http://blog.csdn.net/nvhaixx/article/details/124307571)在网页中添加用于处理的客户端事件: 1 2)页面控件中的代码 3)服务器端的代码(VB.net代码) Private Sub btnSearch_Click(ByVal sen...
分类:
Web程序 时间:
2015-03-15 23:35:38
阅读次数:
183
原题地址:http://acm.hdu.edu.cn/showproblem.php?pid=2058【Problem Description】Given a sequence 1,2,3,......N, your job is to calculate all the possible sub-...
分类:
其他好文 时间:
2015-03-15 13:42:27
阅读次数:
112