文件名称:搜索局域网内IPCamera设备
文件大小:24KB
文件格式:DOCX
更新时间:2017-08-21 04:38:20
搜索局域网 PCamera 设备
搜索局域网内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(); } ); }