
杂类
文章平均质量分 62
leonordo
http://weibo.com/pkubrooks/home
展开
-
libpcap包和libpcap++安装
<br />1.从http://www.tcpdump.org/下载libpcap。<br />2.预先安装:apt-get install flexapt-get install bisonapt-get install libpcap-dev<br />3.tar -xzvf libpcap.tar.gz4.进入解压缩路径下,./configure5.sudo make install6.写下测试程序:#include <stdio.h>#include <pcap.h>int main (){prin原创 2011-03-28 21:52:00 · 839 阅读 · 0 评论 -
singleton模式总结
<br />单例模式的简单总结:<br /> <br /> 一、static变量的复习(明白为啥不用static全局变量,而是用单例模式) <br />When modifying a variable, the static keyword specifies that the variable has static duration (it is allocated when the program begins and deallocated when the program ends) and原创 2011-05-20 11:03:00 · 606 阅读 · 1 评论 -
SQL Server 2005远程连接不上的解决方法
今天在本地连接服务器上的SQL2005发现连接不上,并且服务器上所有与防火相关的东西都关闭了,还是连接不上。进行如下操作之后。连接OK。 一、为 SQL 启用远程连接 1. 单击“开始”,依次指向“程序”、“Microsoft SQL Server 2005”和“配转载 2011-08-06 10:12:27 · 539 阅读 · 0 评论