-
socketbk
基于socket的简单通讯程序,学习socket编程的基本程序(simple socket-based communication program, learning the basic socket programming procedures)
- 2004-09-28 10:23:00下载
- 积分:1
-
C语言的HMM算法库
一个关于HMM(隐马尔可夫模型)实现的C语言库。是Visual C++数字图像模式识别技术及工程实践的配套源代码(one of HMM (HMM) with the C library. Yes Visual C digital image pattern recognition technology and engineering practice supporting source code)
- 2005-04-07 21:50:05下载
- 积分:1
-
sushuquan
求素数圈问题的一种深度优先搜索的算法,可供初学者使用,已调试,但n最好小于12(Seeking primes circle a depth-first search algorithm, for beginners to use, have been debug, but n preferably less than 12)
- 2013-03-14 08:25:56下载
- 积分:1
-
xt
说明: 神经网络pid飞行控制器设计,经典()
- 2008-05-05 09:56:21下载
- 积分: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
-
一个聊天程序的客户端源代码
一个聊天程序的客户端源代码-a chat program and the client source code
- 2022-07-04 01:10:46下载
- 积分:1
-
series of tools that provide a look at the OK!
系列工具的提供 这行的一定要看!-series of tools that provide a look at the OK!
- 2022-08-16 12:07:14下载
- 积分:1
-
pso-bp
这是一个采用粒子群算法优化bp神经网络权值的MATLAB程序(This is a particle swarm optimization using neural network weights bp MATLAB program)
- 2010-06-11 16:15:36下载
- 积分:1
-
Ethernet帧的封装与解析
帧的封装:用户输入任意一段信息,以回车作为结束。然后程序将这段信息作为帧的数据字段封装到数据帧中。并相应填充帧的其他字段。...
Ethernet帧的封装与解析
帧的封装:用户输入任意一段信息,以回车作为结束。然后程序将这段信息作为帧的数据字段封装到数据帧中。并相应填充帧的其他字段。
帧的解析:从用户输入的文件中读取帧,并对其进行解析。通过重新计算CRC-8校验和,判断该帧是否会被接受。最终在终端输出帧的相关信息。
-Ethernet Frame
CRC-8
- 2022-01-22 10:59:09下载
- 积分:1
-
BP
神经网络的具体实现程序,大家学习学习,如有神经网络这方面的需求,联系我
xukai8633@126.com(Concrete realization of neural network procedures)
- 2009-07-16 21:55:22下载
- 积分:1