-
portview
简单的用于查看本机端口的应用程序,通过netstat命令实现(a simple application for local port view)
- 2010-05-26 19:09: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
-
row socket 网络监听
row socket 网络监听
- 2014-04-15下载
- 积分:1
-
sizupation-turbo
wcdma协议中的turbo码链路仿真,基于bpsk,可以测试误比特率和误帧率等性能(The turbo code link simulation in wcdma protocol, based on bpsk, can test the performance of bit error rate and frame error rate.)
- 2018-07-27 22:33:49下载
- 积分:1
-
send
组播发送端,socket通信,Windows网络编程(Multicast sender, socket communications, Windows network programming)
- 2021-01-13 22:48:47下载
- 积分:1
-
TCPaUDP
一段TCP和UDP通讯的程序,包含了服务器端和客户端的代码。(Some TCP and UDP communication procedures, including server and client code.)
- 2014-07-21 08:28:29下载
- 积分:1
-
FEC_Code_Project
很好的能解决网络数据丢包处理的算法。特别是在带宽一定的情况下,解决网络数据传输和带宽、数据传输完整性的较优解决方案。(good solution processing network data packet loss algorithms. Especially in certain circumstances bandwidth, the solution to network bandwidth and data transmission, data transmission integrity of the optimum solution.)
- 2007-05-18 10:12:02下载
- 积分:1
-
Projects
说明: 聊天工具,可以实现悄悄话功能,此是改动网上的小程序(Chat tools, whispering function can be achieved, this is a small program changes online)
- 2008-10-06 14:39:43下载
- 积分:1
-
netspeedspyer
Windows的网络流量速度检测。使用MFC作为开发平台。(A net speed spyer using MFC platform .)
- 2012-02-21 15:20:48下载
- 积分:1
-
PktFilter-0.06-beta2(5)
PktFilter is a software that can configure the IPv4 filtering device driver found in Windows 2000/XP/Server 2003, with filtering rules following a syntax similar to IP Filter.
- 2012-03-29 20:21:57下载
- 积分:1