-
classical cloning function for adding those items hidden units is very convenien...
asp中经典的克隆函数,对于添加那些隐藏的项目单位是非常的方便的。
-classical cloning function for adding those items hidden units is very convenient.
- 2022-07-03 02:09:34下载
- 积分:1
-
气动光学程序
说明: 高斯、涡旋、环状光束的在大气中的传输特性(Propagation characteristics of Gaussian, vortex and annular beams in the atmosphere)
- 2021-04-01 21:09:08下载
- 积分:1
-
winsock5
说明: 本人毕业时班里集体做局域网聊天工具,当时我一共收集了6个,这是第五个(I graduated class of collective LAN chat tools to do when I collected a total of 6, this is the fifth)
- 2008-09-26 21:49:40下载
- 积分:1
-
VC网络编程模型示例之完成例程模型(CompletionRoutine)
VC网络编程模型示例之完成例程模型(CompletionRoutine)MFC代码,配有非常非常详尽的注释,功能只是简单的显示一下各个客户端发来的字符,作为教学代码,为了使得代码结构清晰明了,简化了很多地方,用于产品开发的话还需要做很多改进,有错误或者不足的地方,非常欢迎大家不吝指出。
- 2022-02-06 03:13:39下载
- 积分:1
-
unix 网络程序
大神Richard stevens的unix网络编程一书的源代码,各个章节的都有,在linux和unix系统下编译,可以先阅读readme文件,查看功能和编译 选项
- 2022-07-27 15:35:17下载
- 积分:1
-
网站中管理图片的程序代码(网上收集)
网站中管理图片的程序代码(网上收集)-site management pictures of the code (online collection)
- 2022-03-13 14:44:04下载
- 积分:1
-
《PHP专业项目实例开发》源代码
《PHP专业项目实例开发》源代码-"PHP examples of professional development project" source code
- 2022-03-25 15:55:48下载
- 积分:1
-
socket异步通信模块
C++网络通讯异步模块,采用完成例程的放肆,异步通信,经过测试里面的代码完全可行,效率很高
- 2022-11-18 19:40:03下载
- 积分:1
-
船舶在波浪中的仿真matlab
说明: 波浪模拟,线性波、随机波、船舶受波浪力模拟。(Wave simulation includes linear wave, random wave and wave force on ship.)
- 2021-01-04 16:28:55下载
- 积分:1
-
c# 扫描IP Http Header
c# 扫描IP Http Headerusing System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Threading;using System.IO;namespace HScan{ public partial class Form1 : Form { int _currentThreads = 0; int _maxThreads = 100; Thread main = null; Thread mt = null; List threads = new List(); public Form1() { InitializeComponent(); Control.CheckForIllegalCrossThreadCalls = false; } private void btnStart_Click(object sender, EventArgs e) { btnStart.Enabled = false; if (txtStart.Text.Trim() == "") { MessageBox.Show("起始IP不能为空."); return; } if (txtEnd.Text.Trim() == "") { MessageBox.Show("结束IP不能为空."); return; } int ts = Convert.ToInt32(txtThreads.Text); _maxThreads = ts; string startIp = txtStart.Text; string endIp = txtEnd.Text; TParameter tp=new TParameter(); tp.StartIp=startIp; tp.EndIp=endIp; tp.ThreadCount=ts; main = new Thread(new ParameterizedThreadStart(StartMe)); main.Start(tp); } protected void ThreadManage() { Thread c=null; while (true) { System.Object lockThis = new System.Object(); lock (lockThis) { for (int i = 0; i < threads.Count; i ) { if (threads[i] != null && !threads[i].IsAlive) { c = threads[i]; break; } } if (c != null) { threads.Remove(c); } } } } protected void StartMe(object ob) { mt = new Thread(new ThreadStart(ThreadManage)); mt.Start(); TParameter p = ob as TParameter; string curIp = p.StartIp; while (true) { for (int i = 0; i < _maxThreads; i ) { if (curIp != "") { if (_currentThreads >= _maxThreads) break; System.Object lockThis = new System.Object(); lock (lockThis) { _currentThreads ; if (_currentThreads > _maxThreads) _currentThreads = _maxThreads; string tip = curIp; Thread t = new Thread(new ParameterizedThreadStart(Run)); t.Start(tip); threads.Add(t); curIp = IPUtility.getLastIp(curIp, p.EndIp, 1); } } else { break; } } } } protected void Run(object ob) { string ip = ob.ToString(); SocketGetHead h = new SocketGetHead(); string ret = h.GetHtml(ip, 80); if (ret.IndexOf("DVRDVS-Webs") > 0) { ListViewItem item = new ListViewItem(); item.SubItems[0].Text = (listView1.Items.Count 1).ToString(); ListViewItem.ListViewSubItem lvSubItem = new ListViewItem.ListViewSubItem(); lvSubItem.Text = ip; item.SubItems.Add(lvSubItem); lvSubItem = new ListViewItem.ListViewSubItem(); lvSubItem.Text = "DVRDVS-Webs"; item.SubItems.Add(lvSubItem); listView1.Items.Add(item); } System.Object lockThis = new System.Object(); lock(lockThis) { lblCurIp.Text = ip; _currentThreads--; if (_currentThreads < 0) _currentThreads = 0; } } private void tsmCopy_Click(object sender, EventArgs e) { if (listView1.SelectedItems.Count > 0) { string ip = listView1.SelectedItems[0].SubItems[1].Text; Clipboard.SetText(ip); } } private void tsmExport_Click(object sender, EventArgs e) { StreamWriter writer = new StreamWriter(AppDomain.CurrentDomain.BaseDirectory "\export.txt",true); foreach (ListViewItem item in listView1.Items) { string ip=item.SubItems[1].Text; writer.WriteLine(ip); writer.Flush(); } writer.Flush(); writer.Close(); MessageBox.Show("导出成功!"); } private void Form1_FormClosing(object sender, FormClosingEventArgs e) { try { if (mt != null) { mt.Interrupt(); mt.Abort(); } foreach (Thread t in threads) { t.Interrupt(); t.Abort(); } if (main != null) { main.Interrupt(); main.Abort(); } } catch { } Thread.Sleep(5000); } private void btnStop_Click(object sender, EventArgs e) { try { if (mt != null) { mt.Interrupt(); mt.Abort(); } foreach (Thread t in threads) { t.Interrupt(); t.Abort(); } if (main != null) { main.Interrupt(); main.Abort(); } } catch { } btnStart.Enabled = true; } }}
- 2014-06-23下载
- 积分:1