$ vim /home/wangzheng/.ssh/configHost 10.103.xx.xx HostName 10.103.xx.xxUser root Port 22022 $ ssh 10.103.xx.xxThe authenticity of host '[10.103.xx...
分类:
其他好文 时间:
2014-06-18 19:26:03
阅读次数:
161
单播模型echoserver.c 1 #include 2 3 #define PORT 8080 4 #define LEN_BUF 255 5 6 void do_business(int sockfd); 7 8 int main(void) 9 {10 //1.创建sock...
分类:
其他好文 时间:
2014-06-18 17:17:03
阅读次数:
268
三、组播模型muticast.c 1 #include 2 3 #define PORT 8088 4 5 #define MULTIIP "225.0.0.1" 6 7 int main(int argc,char **argv) 8 { 9 if(argc!=2)10 {...
分类:
其他好文 时间:
2014-06-18 16:23:20
阅读次数:
234
echoserver_select.c 1 #include 2 3 #define BACKLOG 10 4 #define PORT 8080 5 #define MAXCLIENT 20 6 #define LEN_BUF 255 7 8 fd_set grset; 9...
分类:
其他好文 时间:
2014-06-18 16:03:55
阅读次数:
325
'''
Created on 2014年6月15日
@author: Yang
'''
import socket
import datetime
# 初始化socket
s = socket.socket()
# 获取主机名, 也可以使用localhost
# host = socket.gethostname()
host = "localhost"
# 默认的http协议端口号
port...
分类:
编程语言 时间:
2014-06-16 14:17:33
阅读次数:
349
Open vSwitch with SSL and Mininet By default, Mininet uses the unencrypted port in Open vSwitch for OpenFlow. This makes total sense since the purpose...
分类:
Web程序 时间:
2014-06-15 21:39:36
阅读次数:
367
第三方包引入时,eclipse默认会把一些包定为错误的,错误是:“undefined variable from import...” 其实是对的,可是报错,很烦人解决方法:window -- preferences -- pydev -- editor -- code analysis -- Un...
分类:
其他好文 时间:
2014-06-15 18:40:06
阅读次数:
175
IOCP,先从概念上认识一下。IOCP全称I/O Completion Port,中文译为I/O完成端口。是Windows平台最高效的I/O模块,现在IIS服务器,就采用IOCP模型。IOCP是一个异步I/O的API,它可以高效地将I/O事件通知给应用程序。与使用select()或是其它异步方法不....
分类:
编程语言 时间:
2014-06-15 13:08:31
阅读次数:
213
dbhost = $host; $this->dbuser = $user; $this->dbpasswd = $pwd; $this->dbname = $dbname; $this->dbport = $port; ...
分类:
数据库 时间:
2014-06-15 06:05:13
阅读次数:
444
在linux服务器上,经常要定位网络问题,就需要用到抓包。
例如:tcpdump -X -s 0 host 10.17.81.22 and port 9999 -w /home/text.cap -i eth4
上面的意思是抓取和 10.17.81.22 服务器 端口9999进行通讯的所有(-X)不限制大小(-s 0)的网络包,并输出到文件 text.cap ,抓取网...
分类:
系统相关 时间:
2014-06-14 12:57:36
阅读次数:
343