当前位置:首页 » 编程博文
开发技术指南» 文章正文
    引言: 半打开扫描源程序(for WIN2K)#include &l
 

 

 ·使用 ant 让你愉快编程(7)    »显示摘要«
    摘要: 使用 ant 让你愉快编程(7) 摘要: 如何使用这个 ant 环境 现在已经有了整个 ant 环境, 放在 work/common/ 目录下, 配置文件也都 齐全了, 可以开始进行工程了. 进行工程的步骤: 1. 给工程起个响亮的名字, 就叫 proj 吧:) 2. cd 到 work/ 下 3. mkdir proj 4. 将 work/common/build......
    摘要:利用axis tcp monitor (tcpmon) 辅助调试web应用程序(作者:李海军 2004-10-21)axis 的下载和安装请参考http://ws.apache.org/axis/,这里介绍具体使用。安装好axis后,在命令行输入 java org.apache.axis.utils.tcpmon 会显示如下窗口: 在监听端口(listen port#)中输入一个用于调......


半打开扫描源程序(for WIN2K)

半打开扫描源程序(for win2k)

#include <winsock2.h> 【程序编程相关:利用Ghost自动备份与还原

【推荐阅读:体验J2SE 1.5新特性之装箱和拆箱

#include <ws2tcpip.h> 【扩展信息:我的文章列表

#include <stdio.h>

#include "mstcpip.h"

#pragma comment(lib,"ws2_32")

#define default_dest_port 5

#define dest_host www.gmhose.com

#define seq 0x28376839

typedef struct _iphdr

{

unsigned char h_lenver; //4位首部长度+4位ip版本号

unsigned char tos; //8位服务类型tos

unsigned short total_len; //16位总长度(字节)

unsigned short ident; //16位标识

unsigned short frag_and_flags; //3位标志位

unsigned char ttl; //8位生存时间 ttl

unsigned char proto; //8位协议 (tcp, udp 或其他)

unsigned short checksum; //16位ip首部校验与

unsigned int sourceip; //32位源ip地址

unsigned int destip; //32位目的ip地址

}ip_header;

typedef struct _tcphdr //定义tcp首部

{

ushort th_sport; //16位源端口

ushort th_dport; //16位目的端口

unsigned int th_seq; //32位序列号

unsigned int th_ack; //32位确认号

unsigned char th_lenres; //4位首部长度/6位保留字

unsigned char th_flag; //6位标志位

ushort th_win; //16位窗口大小

ushort th_sum; //16位校验与

ushort th_urp; //16位紧急数据偏移量

}tcp_header;

struct //定义tcp伪首部

{

unsigned long saddr; //源地址

unsigned long daddr; //目的地址

char mbz;

char ptcl; //协议类型


...   下一页
    摘要:评奖结果: 一等奖: vrmm队 —— m3d三维图形库 m3d为opengl® es1.0的纯软件实现, 本版本特别针对波导e868 手机平台开发。opengl® es 1.0 是由三维图形普及推进团体美国kronous group 于2003 年7 月公布的、面向手机等嵌入终端的三维图形api 。其定位是面向电脑的三维图形ap......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE