-
VB6.0实现SOCKET通讯一对多
VB6.0实现SOCKET通讯一对多VB6.0实现SOCKET通讯一对多VB6.0实现SOCKET通讯一对多VB6.0实现SOCKET通讯一对多VB6.0实现SOCKET通讯一对多VB6.0实现SOCKET通讯一对多VB6.0实现SOCKET通讯一对多VB6.0实现SOCKET通讯一对多
- 2023-02-14 15:25:03下载
- 积分:1
-
TCP&UDP封装类,有助于开发Socket
这个是我个人封装的类,比较全的,运行无障碍,TCP&UDP封装类,有助于开发Socket,支持服务端和客户端模式,已处理全部反馈错误,如有不当之处可相互交流
- 2022-10-14 03:15:03下载
- 积分:1
-
php实现进度条
网站进度条通用脚本程序。在进行长时间访问动态页面时,可以查看访问进度。避免进行网站长连接时的内存,时间等限制问题!文件中有测试用的PHP实例文件。
- 2015-06-29下载
- 积分: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
-
DNS queries with the socket implementation, but was unpacking some of his writin...
用socket实现DNS查询,不过解包部分自己得写,用抓包工具看下就知道怎么解了-DNS queries with the socket implementation, but was unpacking some of his writing, using Ethereal tool Kanxia to know how to resolve financial
- 2022-01-27 11:34:16下载
- 积分:1
-
C# ModBus发送数据以及接收数据 示例源码
C# ModBus发送数据以及接收数据 示例源码
- 2019-10-21下载
- 积分:1
-
PhpWiki是sourceforge的一个开源项目,是模仿 WikiWikiWeb 的php版。 Wiki 是现在很流行的一个东西。怎么能够错过,快下载看看吧...
PhpWiki是sourceforge的一个开源项目,是模仿 WikiWikiWeb 的php版。 Wiki 是现在很流行的一个东西。怎么能够错过,快下载看看吧!-PhpWiki is a sourceforge the open-source project is to imitate the WikiWikiWeb php version. Wiki is now a very popular thing. How can miss quick look at the download!
- 2022-10-07 02:15:03下载
- 积分:1
-
A realization of video chat source code, hoping to be helpful to everyone
一个实现视频聊天源代码,希望能对大家有所帮助 -A realization of video chat source code, hoping to be helpful to everyone
- 2022-03-16 06:53:12下载
- 积分:1
-
建议ITU
RECOMMENDATION ITU-R M.1677
International Morse cod
- 2022-01-26 00:08:05下载
- 积分:1
-
16194215
说明: OpenGL ES2,0开发库和OpenGL ES3,0开发库有差别,保留对OpenGL ES2,0开发库的使用 用RAR5,4解压(The OpenGL ES2,0 development library is different from the OpenGL ES3,0 development library, and the use of the OpenGL ES2,0 development library remains unzipped with RAR5,4)
- 2018-12-26 06:09:32下载
- 积分:1