上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 34 下一页
摘要: sometime our project can run into some seem strange problem during we delete someobj , some of the code are .a static library file that we can't check it's code.we currently use singleton to do a proxy job to avoid this core dump problem. ----- we only delete them when the system goes shut d 阅读全文
posted @ 2013-01-15 20:22 邓维 阅读(1058) 评论(0) 推荐(0) 编辑
摘要: according to preview article 【并发服务器系列】3 epoll模型I use tcpdump to analyze how tcp build up a connection, send a message ,and close the connection. (code are available in the preview article.)client(172.18.70.159) use a random port 49538 to connection server(172.18.70.149:54321)now I print out the clie 阅读全文
posted @ 2013-01-14 20:06 邓维 阅读(2501) 评论(0) 推荐(0) 编辑
摘要: I spend more than a week to debug a problem about program crash,feeling funstrated all the week until the day I finally solove the problem.In order not to commit such kind of mistake, I write this article to summary the note point when I write code in the future and should obey the rule as much as p 阅读全文
posted @ 2013-01-11 11:40 邓维 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 信号 描述 默认行为SIGABRT 进程放弃 与实现有关SIGALRM 报警时钟 为正常终止SIGBUS 访问了内存对象中的未定义部分 与实现有关 SIGCHLD 子进程被终止、停止或继续 忽略SIGCONT 如果进程被停止了,本信号使进程继续执行 继续 SIGFPE 算术计算中出现了被零除的错误 与实现有关 SIGHUP 在控制终端或进程上挂起或终止 非正常终止 SIGILL ... 阅读全文
posted @ 2013-01-10 11:41 邓维 阅读(250) 评论(0) 推荐(0) 编辑
摘要: I often goto some picture bbs to see pictures ,I have needed to download the pictures from some good post.But I hate of saving it to local disk by WebBrowser. WE NEED TO DO IT AUTOMATICALLY.Some picture bbs forumusually has a list of each post , and each post contain the pictures , with url in it 阅读全文
posted @ 2012-12-15 09:04 邓维 阅读(299) 评论(0) 推荐(0) 编辑
摘要: previousunix 网络编程总结http://www.itokit.com/2012/0409/73525.htmlhttp://www.itokit.com/2012/0409/73526.htmlhttp://www.itokit.com/2012/0409/73527.html 阅读全文
posted @ 2012-12-10 23:08 邓维 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 回调函数是你把函数地址传递过去,然后至于什么时候被调用,你并不需要知道,也不由你去调用。#include<stdio.h>//#include<iostream>//usingnamespacestd;typedefvoid(*CALLBACK)(inta,intb);classExample{private:intm;intn;staticCALLBACKfunc;public:voidregister_callback(CALLBACKfun,intk,intj);voidcallcallback();voidcalulate();voidincrease(ints 阅读全文
posted @ 2012-12-07 15:17 邓维 阅读(163) 评论(0) 推荐(0) 编辑
摘要: What's heap ? it's main feature: root is the smallest(largest), nodes with children are larger than children. Root which is the smallest ,called Small Heap. Otherwise, we called it Big Heap if it's largest.we now represent the heap in data stuct of Heap in the way of array.In order to fi 阅读全文
posted @ 2012-11-30 10:06 邓维 阅读(279) 评论(0) 推荐(0) 编辑
摘要: Why does it call Shell Sort? This time it's name has little to do with the method it uses. In fact , it's alse callDecreasing incremental sorting algorithm (递减增量排序算法)It's because ofDonald Shell, who invented this method:divide List into servral column (first column = length/2)but each ti 阅读全文
posted @ 2012-11-29 11:15 邓维 阅读(332) 评论(0) 推荐(0) 编辑
摘要: Why does it call insert sort?It's name contains the method it uses.It's basic theory was so simple: Insert a element into a sorted list.But how the sorted list basically initialize ---- build a list with only one element.Here comes the code:#include<stdio.h>#include"type.h"vo 阅读全文
posted @ 2012-11-28 09:01 邓维 阅读(200) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 34 下一页