using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
namespace ConsoleTest
{
class Program
{
static void Main(string[] args)
{
//接收组播数据
Thread t = new Thread(new ThreadStart(RecvThread));
t.IsBackground = true;
t.Start();
C# 完整的UDP客户端代码 组播+单播 异步+同步

最新推荐文章于 2025-07-19 16:39:52 发布