• λ我爱Aspx >> Asp.Net >> c# 获得局域网主机列表实例
  • c# 获得局域网主机列表实例

  • :未知  Դ:internet  :2007-5-20 16:43:43  ؼ:c#
  • using System;

    using System.Drawing;

    using System.Collections;

    using System.ComponentModel;

    using System.Windows.Forms;

    using System.Data;

    using System.Net;

    using System.Threading;

    namespace WindowLanSearch

    {

    /// <summary>

    /// Form1 的摘要说明。

    /// </summary>

    public class Form1 : System.Windows.Forms.Form

    {

    private System.Windows.Forms.TextBox textBox1;

    private System.Windows.Forms.Button button1;

    private string[,] LanHost;

    private System.Windows.Forms.ProgressBar progressBarSearch;

    private Thread[] thread;

    private System.Windows.Forms.ListView listView1;

    private System.Windows.Forms.ColumnHeader columnHeader1;

    private System.Windows.Forms.ColumnHeader columnHeader2;

    private string str;

    /// <summary>

    Ҷƪл˵?
  • һƪc# 获得局域网主机列表实例
    һƪ用C#的Raw Socket实现网络封包监视