Chinaunix首页 | 论坛 | 博客
  • 博客访问: 334913
  • 博文数量: 89
  • 博客积分: 5152
  • 博客等级: 大校
  • 技术积分: 1155
  • 用 户 组: 普通用户
  • 注册时间: 2006-02-25 15:12
文章分类

全部博文(89)

文章存档

2012年(1)

2011年(5)

2010年(14)

2009年(69)

我的朋友

分类: C/C++

2010-07-07 13:39:32

#include <stdio.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/signal.h>
#include <sys/time.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/ioctl.h>
  
#define N 11
  
int port[N] ={
80,81,88,8083,8080,8001,8888,3128,3124,3000,1080}; /* 欲搜的端口号 */
int status=-1;
char serverName[20];
u_char p1,p2,p3,p4;
int sockfd=-1;
struct timeval timeout={2,0};
fd_set mask;
FILE *f=NULL;
int err;
int errlen;
u_long startIP,endIP,k;
  
void terminate(int sig)/*TJB改terminate(void)为(int sig) */ /* 异常中止处理子程绦

阅读(682) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~