摘要: 后台服务方式:被调试端dbgsrv.exe -t tcp:port=1234,password=abcc调试端windbg.exe -premote tcp:server=192.168.0.43,port=1234,password=abcc远程控制方式:被调试端先开启windbg,运行命令.server tcp:port=2345调试端windbg.exe -remote tcp:server=192.168.0.43,port=2345界面操作是: 阅读全文
posted @ 2009-05-19 17:47 ahuo 阅读(1723) 评论(2) 推荐(0) 编辑
摘要: 5.1[代码]6.0[代码] 阅读全文
posted @ 2009-05-19 15:17 ahuo 阅读(775) 评论(0) 推荐(0) 编辑
摘要: unsigned short checksum(unsigned short* usBuf, unsigned int nSize){unsigned long usChksum=0;//Calculate the checksumwhile (nSize>1){usChksum+=*usBuf++;nSize-=sizeof(unsigned short);}//If we have one char leftif (nSize)usChksum+=*(unsigned char*)usBuf;//Complete the calculationsusChksum=(usChksum 阅读全文
posted @ 2009-05-19 14:58 ahuo 阅读(415) 评论(0) 推荐(0) 编辑
摘要: 传输层协议使用带外数据(out-of-band,OOB)来发送一些重要的数据,如果通信一方有重要的数据需要通知对方时,协议能够将这些数据快速地发送到对方.为了发送这些数据,协议一般不使用与普通数据相同的通道,而是使用另外的通道.linux系统的套接字机制支持低层协议发送和接受带外数据.但是TCP协议没有真正意义上的带外数据.为了发送重要协议,TCP提供了一种称为紧急模式(urgent mode)的... 阅读全文
posted @ 2009-05-19 14:42 ahuo 阅读(652) 评论(0) 推荐(0) 编辑