01 2013 档案

摘要:As we know , we can use :void (*signal(int sig, void (*func)(int)))(int);to set handler when our process have receive a signal.signal table : we can get them by man 7 signalFirst the signals described in the original POSIX.1-1990 standard. Signal Value Action Comment ──────────────────────────... 阅读全文
posted @ 2013-01-29 12:09 邓维 阅读(1134) 评论(0) 推荐(0) 编辑
摘要:关键词: P2P UDP NAT 原理 穿透 Traveral Symmetric Cone原始作者:Hwycheng Leo(FlashBT@Hotmail.com)源码下载:http://bbs.hwysoft.com/download/UDP-NAT-LEO.rar参考:http://midcom-p2p.sourceforge.net/draft-ford-midcom-p2p-01.txtP2P之UDP穿透NAT的原理与实现(shootingstars)文章说明:关于UDP穿透NAT的中文资料在网络上是很少的,仅有<<P2P之UDP穿透NAT的原理与实现(shooting 阅读全文
posted @ 2013-01-27 22:44 邓维 阅读(395) 评论(0) 推荐(0) 编辑
摘要:we already have some article analyse BNBT, including analyse the basic routine and the most import part around communication with bt clients.this article also talks about the communication via traker_announce.cpp.BT客户端据此向tracker发送GET请求,例如:GET http://192.168.0.1:2222/announce?info_hash=w%3D%1E%FB%A2% 阅读全文
posted @ 2013-01-25 21:38 邓维 阅读(844) 评论(0) 推荐(0) 编辑
摘要:I have not started mysql for quite a long time , then some mistake taken when I start: mysql -uroot -pThere's no such file "/var/lib/mysql/mysql.sock" , not event in my whole disk . I tried:[dengwei@localhost repos1]$ sudo /etc/rc.d/init.d/mysqld start[sudo] password for dengwei: MySQL 阅读全文
posted @ 2013-01-25 16:54 邓维 阅读(1073) 评论(0) 推荐(0) 编辑
摘要: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) 编辑