-
row socket 网络监听
row socket 网络监听
- 2014-04-15下载
- 积分:1
-
hacker
学习网络安全的一本书籍。《黑客入侵(超级详细版)》(A learning network security books. " Hacking (super-detailed version)" )
- 2014-01-10 23:46:45下载
- 积分:1
-
LM75A_an
LM75的单片机驱动程序,PDF格式的文档(LM75 MCU CODE, PDFdocument)
- 2019-05-29 10:45:02下载
- 积分:1
-
rgcistgr__statement__metropclitan
用vc++实现的图案设计系统,共对图像处理研究方向的朋友参考学习!(Using vc pattern design system, a total of image processing research direction of friends reference learning!)
- 2018-10-12 06:09:38下载
- 积分:1
-
telnet
自己实现的telnet的服务器端和客户端源码,VC2010实现(Their implementation of Telnet server and client source code, VC2010 implementation)
- 2021-01-12 16:38:48下载
- 积分:1
-
WebDAVClient-master(2)
一个基于webdav的网盘客户端,代码简单易懂,可以供初学者参考(A WebDAV based SkyDrive client, the code is simple and easy to understand, can be used for reference for beginners)
- 2017-12-06 15:06:02下载
- 积分:1
-
NetDebug
1、实现多个网络调试助手示例在一个进程中启动;
2、可以实现TCP_SERVER,TCP_CLIENT,UDP,UDP组播通信;(1, multiple network example debugging assistant to start a process 2, can achieve TCP_SERVER, TCP_CLIENT, UDP, UDP Multicast communication )
- 2013-01-28 17:35:58下载
- 积分: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
-
MachRemote
MACH3软件二次开发的一个实例程序,希望对喜欢MACH3二次开发的朋友有帮助。(MACH3 software secondary development of an example program, we want to enjoy MACH3 secondary development to help a friend.)
- 2021-01-15 15:28:46下载
- 积分:1
-
简单的客户端连接服务器
说明: 本实验可用于不同操作系统间网络通信,使用最简单的使用套接字进行传输(It can connecte different system.)
- 2020-06-23 09:40:02下载
- 积分:1