-
wcf 通过修改header 验证访问权限的两种方式【推荐】
通过继承 IClientMessageInspector IDispatchMessageInspector 实现 请求消息头的验证
- 2015-01-07下载
- 积分:1
-
Desktop
说明: 基于matlab的演化博弈模拟输出图,亲测好用,欢迎下载(Matlab-based evolutionary game simulation output diagram)
- 2019-04-27 20:24:39下载
- 积分:1
-
C# 简单的网络硬盘 实例源码下载
网络硬盘 实例源码
- 2013-11-28下载
- 积分:1
-
CSharpComponentEmbedinNET
网页嵌套的pdf组件,可以在网页中嵌套自己开发的pdf组件(Web nested pdf components can nest pdf components to develop their own web page)
- 2012-12-05 22:24:52下载
- 积分:1
-
基于OPNET的无线自组织网络AODV协议的仿真
说明: 基于OPNET的无线自组织网络AODV协议的仿真(Simulation of AODV protocol in wireless ad hoc network based on OPNET)
- 2020-04-01 23:43:19下载
- 积分:1
-
cPPhttp_Part5_upAndDown
http通信包,提供上传和下载的处理接口(http communications package that provides the processing interface to upload and download)
- 2013-10-14 14:31:25下载
- 积分:1
-
WinSockUDP
VC UDP通讯,后台服务器
FileMana.cpp
FileMana.h
Login.cpp
Login.h
resource.h
SocketUdp.cpp
SocketUdp.h
StdAfx.cpp
StdAfx.h
WinSockUDP.aps
WinSockUDP.clw
WinSockUDP.cpp
WinSockUDP.dsp
WinSockUDP.dsw
WinSockUDP.h
WinSockUDP.ncb
WinSockUDP.opt
WinSockUDP.plg
WinSockUDP.rc
WinSockUDP.sln
WinSockUDP.vcproj
WinSockUDP.vcproj.T400-CKX.Administrator.user
WinSockUDPDlg.cpp
WinSockUDPDlg.h( FileMana.cpp
FileMana.h
Login.cpp
Login.h
resource.h
SocketUdp.cpp
SocketUdp.h
StdAfx.cpp
StdAfx.h
WinSockUDP.aps
WinSockUDP.clw
WinSockUDP.cpp
WinSockUDP.dsp
WinSockUDP.dsw
WinSockUDP.h
WinSockUDP.ncb
WinSockUDP.opt
WinSockUDP.plg
WinSockUDP.rc
WinSockUDP.sln
WinSockUDP.vcproj
WinSockUDP.vcproj.T400-CKX.Administrator.user
WinSockUDPDlg.cpp
WinSockUDPDlg.h)
- 2012-05-24 14:41:07下载
- 积分:1
-
AutocomplectionCtrl_demo
获取网络设置获取网络设置获取网络设置 获取网络设置(Access to the network settings to obtain network settings network settings to obtain access to network settings)
- 2007-11-17 01:55:11下载
- 积分:1
-
multi_thread_udp
多线程UDP通讯例子( Multi-thread UDP communication example )
- 2020-06-26 11:40:01下载
- 积分: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