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;
namespace BroadcastTest
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
static UdpClient UDPsend = new UdpClient(new IPEndPoint(IPAddress.Any, 0));
static IPEndPoint endpoint = new IPEndPoint(IPAddress.Broadcast, 6099);
//其实 IPAddress.Broadcast 就是 255.255.255.255
//下面代码与上面有相同的作用
//static IPEndPoint endpoint = new IPEndPoint(IPAddress.Parse("255.255.255.255"), 6099);
sta
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;
namespace BroadcastTest
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
static UdpClient UDPsend = new UdpClient(new IPEndPoint(IPAddress.Any, 0));
static IPEndPoint endpoint = new IPEndPoint(IPAddress.Broadcast, 6099);
//其实 IPAddress.Broadcast 就是 255.255.255.255
//下面代码与上面有相同的作用
//static IPEndPoint endpoint = new IPEndPoint(IPAddress.Parse("255.255.255.255"), 6099);
sta