昨天非常轻松的分析完Redis的事件驱动模型之后,今天我来看看anet的代码,anet是Redis对于Client/Server的网络操作的一个小小封装。代码中对此文件的官方解释为:
/* anet.c -- Basic TCP socket stuff made a bit less boring
* 基于简单的基本TCP的socket连接后面的made a bit less boring这...
分类:
Web程序 时间:
2014-10-27 10:57:43
阅读次数:
716
这个网站上的一系列讲解NS2的内容真的是深入浅出,看完立刻豁然开朗。所以就接连转了几篇。Scheduling Events那篇里的例子特别好,看完就懂了。http://www.mathcs.emory.edu/~cheung/Courses/558-old/Syllabus/90-NS/NS Sim...
分类:
其他好文 时间:
2014-10-27 00:18:19
阅读次数:
230
Go's basic types areboolstringint int8 int16 int32 int64uint uint8 uint16 uint32 uint64 uintptrbyte // alias for uint8rune // alias for int32 ...
分类:
其他好文 时间:
2014-10-26 21:06:48
阅读次数:
178
//Example://reverse \ clone \ DelayTime \ EaseIn | EaseOutvoid SpriteEase::onEnter(){ EaseSpriteDemo::onEnter(); auto move = MoveBy::create(...
分类:
其他好文 时间:
2014-10-26 19:40:07
阅读次数:
273
Visual Basic 2005 更改了它支持各种编程元素的方式,主要是为了提供与公共语言运行库的互操作性。许多 Visual Basic 6.0 元素被重新命名,重新分类或与 Visual Basic 2005 的其他编程元素相结合。取消了对若干元素的支持,因为公共语言运行库 (CLR) 中的功...
分类:
Web程序 时间:
2014-10-26 15:33:37
阅读次数:
483
vb中数组的初始化问题:计划使用数组存储以下值:"零分,班序,年名,序,组名,级名,总分3,总分5,总分9,总序,语序,数序,英序,物序,化序,政序,历序,地序,生序"方法:在vb中数组初始化比较麻烦1.标准做法:dimfield(19)asstring‘需要手工计算下标上限
fiels(0)="零分"‘逐行赋值
field(1)..
分类:
编程语言 时间:
2014-10-24 06:57:35
阅读次数:
343
pply OS : Windows, Mac, Linux
Apply Navicat Product : Navicat for Oracle, Navicat Premium
Apply Navicat Version No. : All
Instant Client package is required for Basic and TNS connection typ...
分类:
其他好文 时间:
2014-10-23 17:48:12
阅读次数:
374
由于是第一次接触Easy UI,还不是非常熟悉,尝试了一下对话框功能,还是很不错的,但问题是页面加载完成后,所有的对话框都自动弹出来了,百度了好久,也没有具体说明白的,貌似别人都没有这个问题哦
以下是Easy UI 官方提供的示例(页面加载完成后对话框自动弹出)
Basic Dialog - jQuery EasyUI Demo
...
分类:
其他好文 时间:
2014-10-23 14:36:45
阅读次数:
157
欢迎交流 1.1.26public class TestApp { public static void main(String[] args) { int a = StdIn.readInt(); int b = StdIn.readInt(); ...
分类:
其他好文 时间:
2014-10-22 20:16:11
阅读次数:
215
In the past four blogs, we attached importance to the index, including description and comparison with usage of index. Now in this blog, we will mainly focus on the basic operation of index. such quer...
分类:
数据库 时间:
2014-10-22 01:05:29
阅读次数:
270