using 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.Net;
using System.Net.Sockets;
using System.Threading;
//网络通讯的技术所需要的命名空间
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
Form.CheckForIllegalCrossThreadCalls = false;
}
private void button1_Click(object sender, EventArgs e)
{
string hostName= Dns.GetHostName();//获取主机名
//textBox1.Text = hostName;
//IPAddress ip=
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.Net;
using System.Net.Sockets;
using System.Threading;
//网络通讯的技术所需要的命名空间
//这里先简单介绍一下基于DUP的通讯
//简单的说就是向一个指定对象发送数据,不伦这个对象是否存在都会向他发送
namespace WindowsFormsApplication1{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
Form.CheckForIllegalCrossThreadCalls = false;
}
private void button1_Click(object sender, EventArgs e)
{
string hostName= Dns.GetHostName();//获取主机名
//textBox1.Text = hostName;
//IPAddress ip=