摘要: We start our detailed description of the TCP source code by looking at the various TCP timers. We encounter these timers throughout most of the TCP functions. TCP maintains seven timers for each connection. They are briefly described here, in the approximate order of their occurrence during the ... 阅读全文
posted @ 2012-04-03 18:23 山涧鸟鸣 阅读(767) 评论(0) 推荐(0) 编辑
摘要: 1、进程间通讯方法SignalsPipesFIFOsFile LockingMessage QueuesSemaphoresShared Memory SegmentsMemory Mapped FilesUnix Sockets2、进程间通讯API 3、线程相关API 数据类型 pthread_t:线程句柄pthread_attr_t:线程属性 线程操纵函数(简介起见,省略参数): pthread_create():创建一个线程pthread_exit():终止当前线程pthread_cancel():中断另外一个线程的运行pthread_join():阻塞当前的线程,直到另外一个线程... 阅读全文
posted @ 2012-04-03 17:51 山涧鸟鸣 阅读(340) 评论(0) 推荐(0) 编辑
摘要: CUtil::GetSystemTime(_T("%Y-%m-%d%H:%M:%S")) 阅读全文
posted @ 2011-02-26 14:11 山涧鸟鸣 阅读(254) 评论(0) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2011-02-15 13:42 山涧鸟鸣 阅读(496) 评论(0) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2010-12-20 15:22 山涧鸟鸣 阅读(2435) 评论(0) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2010-12-15 14:00 山涧鸟鸣 阅读(254) 评论(0) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2010-12-15 11:14 山涧鸟鸣 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 原创作品,允许转载,转载时请务必以超链接形式标明文章原始出处、作者信息和本声明。否则将追究法律责任。http://pyhcx.blog.51cto.com/713166/143549一.简介 log4cplus是C++编写的开源的日志系统,功能非常全面.本文介绍如何在Windows+VS2008中使用该日志库。二.下载 可从网站http://log4cplus.sourceforge.net上去下载 log4cplus 1.0.3 rc9,具体地址http://downloads.sourceforge.net/log4cplus/log4cplus-1.0.3-rc9.tar.bz2?use 阅读全文
posted @ 2010-12-07 14:02 山涧鸟鸣 阅读(582) 评论(0) 推荐(0) 编辑
摘要:       缓和曲线的里程-坐标计算,在公路,隧道等建设中经常用到。一般正算方法在多数书中可以搜到。但是反算,由坐标反算里程很难找到,我给大家介绍一种方法: 采用渐进法由坐标反算里程:    如右下图:A为曲线上任意一点,这点的里程和切线方位角已知,如直缓点zh;B为所测任意一点的坐标。 1、过A点做切线,B在A点切线方向... 阅读全文
posted @ 2010-05-08 15:57 山涧鸟鸣 阅读(3826) 评论(0) 推荐(0) 编辑
摘要: 很多有具有参考价值的资料,比如学生写论文报告,老师做课件,找工作准备简历都需要参考其他人的成果。在互联网上,这类资料一般不是普通的html网页,而是以Word、ppt(s)、Excel、pdf等格式存在的。虽然这些文件不象Html文件那样多,但由于它通常会包含一些别处没有的数据和资料,因而显得特别重要。对互联网上这类资源的挖掘和利用,既是搜索引擎的必备功能,也是网民主要的搜索需求之一。例如,北大的... 阅读全文
posted @ 2010-04-27 20:55 山涧鸟鸣 阅读(1113) 评论(0) 推荐(0) 编辑