昨天非常轻松的分析完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
苹果在2014年10月20号发布了一条消息:从明年的二月一号开始,提交到App Store的应用必须支持64-bit。详细消息地址为:https://developer.apple.com/news/?id=10202014a那们我们应该如何开始着手让自己的App支持64-Bit呢?基本知识从iPh...
分类:
移动开发 时间:
2014-10-27 10:47:41
阅读次数:
360
ImplementPic. It should return a slice of lengthdy, each element of which is a slice ofdx8-bit unsigned integers. When you run the program, it will di...
分类:
其他好文 时间:
2014-10-27 06:54:12
阅读次数:
281
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5083题目意思:如果给出 instruction 就需要输出对应的16-bit binary code,给出16-bit binary code 就需要输出对应的instruction。 由于不会截取的....
分类:
其他好文 时间:
2014-10-27 00:15:41
阅读次数:
354
1、主要的绘制图片方法 //Bitmap:图片对象,left:偏移左边的位置,top: 偏移顶部的位置 drawBitmap(Bitmap bitmap, float left, float top, Paint paint)2、对图片剪接和限定显示区域 drawBitmap(Bitmap bit....
分类:
移动开发 时间:
2014-10-26 15:31:06
阅读次数:
148
Fire StationTime Limit: 5000msMemory Limit: 65536KBThis problem will be judged onPKU. Original ID:260764-bit integer IO format:%lld Java class name:Ma...
分类:
其他好文 时间:
2014-10-26 14:14:43
阅读次数:
215
DiningTime Limit: 2000msMemory Limit: 65536KBThis problem will be judged onPKU. Original ID:328164-bit integer IO format:%lld Java class name:MainCows...
分类:
其他好文 时间:
2014-10-26 11:29:30
阅读次数:
249
原著:James McCaffrey翻译:小刀人 原文出处:MSDN Magazine November 2003 (Encrypt It)本文的代码下载:msdnmag200311AES.exe(143KB)本文假设你熟悉 C# 和 位(bit)操作。摘要 AES(The Advanced En....
分类:
编程语言 时间:
2014-10-25 22:53:50
阅读次数:
370
A -Integer InquiryTime Limit:3000MSMemory Limit:0KB64bit IO Format:%lld & %lluSubmitStatusDescriptionInteger InquiryOne of the first users of BIT's ne...
分类:
其他好文 时间:
2014-10-25 15:51:01
阅读次数:
195
昂贵的聘礼Time Limit: 1000msMemory Limit: 10000KBThis problem will be judged onPKU. Original ID:106264-bit integer IO format:%lld Java class name:Main年轻的探险...
分类:
其他好文 时间:
2014-10-25 14:25:07
阅读次数:
229