搜索资源列表
用Java编写HTML文件分析程序
- 用Java编写HTML文件分析程序 一、概述 Web服务器的核心是对Html文件中的各标记(Tag)作出正确的分析,一种编程语言的解释程序也是对源文件中的保留字进行分析再做解释的。实际应用中,我们也经常会碰到需要对某一特定类型文件进行要害字分析的情况,比如,需要将某个HTML文件下载并同时下载与之相关的.gif、.class等文件,此时就要求对HTML文件中的标记进行分离,找出所需的文件名及目录。在Java出现以前,类似工作需要对文件中的每个字符进行分析,从中找出所需部
YCArray
- /** * 动态数组的模板类 * 1.支持字符索引 * 2.方便的添加删除修改任意一项 * 最后更新 2004-8-9 yzh **1.优化了字符索引的运作方式,使用数组存储 **2.重写了底层数据的存储,将连续性的存储方式改为了非连续, *** 从而很好有效地支持了“引用”,并且让数据的删除增加变的更为快速 * 用法如: * YCArray<int,int> test * test.Add(\"Number2\",4) * test.
Unixftpcilent
- 一个FTP客户端类,用Socket写的,环境为Unix。 之所以封装这个类是因为以前在unix下写文件上传下载的操作都是调shell脚本,C、C++很难控制与shell的交互, 并且无法获知出错的错误代码,用C++封装成一个工具类后,任何项目都可以重用了。 操作很方便,就像平常的FTP操作: 1:登陆FTP服务端 FTPTools ftpTools (conts string &pm_sFtpServer,int pm_iFtpPort) ftpTools.
lincan-0.3.3.tar
- LinCAN is a Linux kernel module that implements a CAN driver capable of working with multiple cards, even with different chips and IO methods. Each communication object can be accessed from multiple applications concurrently. It supports RT-Linu
AnalyzeTCP_WinPcap.cpp
- 该程序通过利用WinPcap提供的函数pcap_loop(pcap_t* p,int cnt,pcap_handle dispatch_handle,u_char* user)将数据包捕获。并在dispatch_handle(u_char *,const pcap_pkthdr *header,const u_char *pkt_data)中通过编写代码实现解析。
threadpoo.tar
- threadpoo #include \"thread-pool.h\" static void *tp_work_thread(void *pthread) static void *tp_manage_thread(void *pthread) static TPBOOL tp_init(tp_thread_pool *this) static void tp_close(tp_thread_pool *this) static void tp_p
1i
- 软件测试:一个编译器测试软件,支持下列C语言运算符:+ - * / % ^(乘方) 负 (int) (double) \"字符串\" [](数组) > < == >= <= != && ! ++ -- = += -= *= /= %= ^=,支持下列关键字:void int double string if else for while do goto break continue return,支持下列数据类型:int double string int[] doubl
用D3D模拟地月系
- 一、建立空窗体 新建一个工程,添加引用,并导入名称空间。 加入一个设备对象变量: private Microsoft.DirectX.Direct3D.Device device = null; 添加初始化图形函数,并在这里面对设备对象进行实例化: public void InitializeGraphics() { PresentParameters presentParams = new PresentParam
一个判断远程主机存活程序代码
- 一个判断远程主机存活程序代码(ping) #include #include #include #include #include "winsock.h" #pragma comment(lib,"Ws2_32"); #define SEND_SIZE 32 #define PACKET_SIZE 4096 #define ICMP_ECHO 8 #define ICMP_ECHOREPLY 0 struct icmp {
php_ser_5.2.0-5.2.17
- php实现RS232串口通信 下载php_ser_5.2.0.zip 解冻把php_ser放到ext目录下, php.ini里加上: extension=php_ser.dll PHP code string ser_version( void ) void ser_open( string port, int baudrate, int databits, string parity, float stopbits, string flowcontrol )
Telnet协定远端登陆VC源代码
- Telnet协定远端登陆VC源代码 TelnetServer::setServer(int nPort, int nMaxConnects, char connectMsg[9999], char serverFullMsg[9999]) { int lcv; if (nMaxConnects < 1) { nMaxConnects = 1; } if (nMaxConnects > 100) { nMaxConnects = 100; } PORT =
BusinessEntry
- 人才市场短信平台入口 public void AnalyzeMsg(ShortMsg xmlBuffer) { BusinessProcess BP = new BusinessProcess() //业务处理类 String Msg = xmlBuffer.getShortMsg() String mobileNum = xmlBuffer.getSendMobileNum() String mobileType = xmlBuffer.getMobil
liaotianshi
- 客户端的实现效果 1.登录服务器,如果服务器端口号和IP号输入的字符都是"0"则,客户端连接到默认的服务器 2.输入聊天昵称 3.输入"-quit"会自动退出聊天 4.输入"-getList"会得到在线用户的名称 5.输入"-to <用户名称> <聊天信息>"会把信息发送到指定的用户处,他人看不到 6.输入"-help"会得到客户端相应操作帮助 6.直接输入内容则会将内容发
10121
- 利用虚函数手段,按照三种不同的数据存储方式及其处理方法来实现如下的所谓“反序 输出问题”:从键盘输入n 个int 型数据先存储起来(具体n 值由用户从键盘输入),而后再 按照与输入相反的顺序将这些数据显示在屏幕上。 具体地说,可通过在基类baseCla 及其派生类method1Cla、method2Cla 和method3Cla 中说明如下的同一个虚函数“virtual void reverseout() ”,来实现所述问题的三种不同处 理方法。例如,可设计并使用已经在第四章
Int64
- 跨平台int 64位 整数封装类,测试环境vc6 gcc win2003 -Cross-platform package int 64-bit integer type, test environment vc6 gcc win2003
ClassKeyDemo
- Dictionary objects take a single key as a look up key. This class simplifies using a Dictionary when you have multiple keys, such as two strings and an int, etc.
the_communication_mechanism_of_graph_system_based_
- 文章主要讨论了视频会议系统中基于 电子白板的图形会话系统的通讯机制, 以及采用W inSock 技术实现系统的主要技术和编程方法-Th is paper int ro2 duces the communicat ion mechanism of graph system based on w h iteboard, and discusses the im2 p lementat ion w ith w indow s socket.
php-login-script-v1.0
- PHP编写的用户登录 注册程序 通过MYSQL数据验证 密码修改等功能-Requirements - MySQL 3.x or later - PHP 4+ with GD Library - Apache Server - Linux How to Install 1. First create a mysql database (say phplogin) for a particular user name (say guest) and pass
unlock
- unlock函数的功能是解除文件共享锁,其用法为:int unlock(int handle, long offset, long length) -int unlock(int handle, long offset, long length)
IE
- 仿制IE在“解决方案资源管理器” 中,右键单击“TextBoxExt”项目,从弹出的菜单中选择“属性”,会弹出属性配置对话框,在左上角的“配置(C)”中选择“所有配置”,设置输出路径为“.."output”,注意,该输入有点特殊,两个小数点+反斜杠+output,意思是当前文件夹上一层的ouput文件夹(从VC过来的朋友可能比较熟悉这种方式)-IE private void lstBox_MouseMove(object sender, System.Windows.Forms.MouseEv