服务器端的Bind(IPEndPoint)只能绑定本机所拥有的地址,如127.0.0.1,过路由的还可以绑定你在从路由获得的地址(如192.168.1.100),直接单机拨号上网的,还可以绑定你的拨号获得的外网IP。总之就是只能绑定本机可以获得的合法IP,最重要的是服务器端提供了端口号。客户端的Co...
分类:
其他好文 时间:
2014-05-23 07:24:47
阅读次数:
296
【题目】
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
Your goal is to reach the last index in the minimum number of ju...
分类:
其他好文 时间:
2014-05-22 17:02:20
阅读次数:
244
转自:http://blog.csdn.net/Solstice/archive/2008/10/13/3066268.aspx这是一篇比较情绪化的blog,中心思想是“继承就像一条贼船,上去就下不来了”,而借助boost::function和boost::bind,大多数情况下,你都不用上贼船。b...
分类:
其他好文 时间:
2014-05-22 02:12:42
阅读次数:
287
1、将主DC的ip地址修改,并将DNS地址指向自己。2、在DC上释放DNS的缓存和重新注册DNS
ipconfig /flushdns ipconfig /registerdn
这样以后你可能会发现在你的DNS下有两条主机记录,一条是以前的ip的,一条是现在的!你可以手工将旧的给删除了!3、在...
分类:
其他好文 时间:
2014-05-21 19:33:24
阅读次数:
254
TCP/IP层次模型共分为五层:应用层HTTP、传输层TCP、网络层IP、数据链路层Data-link、物理层physical。
应用层—应用层是所有用户所面向的应用程序的统称。ICP/IP协议族在这一层面有着很多协议来支持不同的应用,如我们进行万维网(WWW)访问用到了HTTP协议、文件传输用FTP协议、电子邮件发送用SMTP、域名的解析用DNS协议、远程登录用Telnet协议等等,...
分类:
其他好文 时间:
2014-05-21 14:56:31
阅读次数:
379
ECMAScript5浏览器支持情况:
Opera 11.60Internet Explorer 9*Firefox 4Safari 5.1**Chrome 13
* IE9不支持严格模式 — IE10 添加
** Safari 5.1 仍不支持 Function.prototype.bind, 尽管 Function.prototype.bind现在已经被Webki...
分类:
其他好文 时间:
2014-05-21 08:54:09
阅读次数:
227
yuminstallbind*一、修改下面配置文件vi/etc/named.confoptions{listen-onport53{192.168.100.210;};listen-on-v6port53{::1;};directory"/var/named";dump-file"/var/named/data/cache_dump.db";statistics-file"/var/named/data/named_stats.txt";memstatistics-file"/var/na..
分类:
其他好文 时间:
2014-05-20 22:07:44
阅读次数:
341