$ 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
广播模型broadcast.c 1 #include 2 3 #define PORT 8088 4 5 int main(int argc,char **argv) 6 { 7 if(argc!=2) 8 { 9 printf("%s \n",argv[0])...
分类:
其他好文 时间:
2014-06-18 15:55:32
阅读次数:
189
贴一下代码,例子是从别人那里直接抄来的:-module(myudp).-export([start/0, client/1]).%% Serverstart() -> spawn(fun() -> server(4000) end). server(Port) -> {ok, So...
分类:
其他好文 时间:
2014-06-17 21:07:49
阅读次数:
225
'''
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
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