登录 注册
当前位置:主页 > 资源下载 > 47 > 在局域网内搜索IPCamera设备

在局域网内搜索IPCamera设备

  • 更新:2024-06-19 10:01:32
  • 大小:24KB
  • 推荐:★★★★★
  • 来源:网友上传分享
  • 类别:C# - 后端
  • 格式:DOCX

资源介绍

搜索局域网内IPCamera设备 public Receiver() { _thread = new Thread( delegate() { // Create the client UDP socket. Listing on port 9003 IPEndPoint endPoint = new IPEndPoint(IPAddress.Any, 9003); UdpClient client = new UdpClient(endPoint); // Receive the packets asynchronously. client.BeginReceive( new AsyncCallback(OnPacketReceived), new UdpState() { Client = client, EndPoint = endPoint }); // Wait for the thread to end. _shutdownThread.WaitOne(); } ); }