一台PC(PC),与一台Philips心电监视设备Monitor
1)PC 每隔2秒发送一次请求给——〉Monitor
2)PC端另外创建一个Socket(sock)接收广播的数据,但是当sock.Receive(by)时,不进行了 请各位高手,指点同时给一些接收硬件广播的例子谢谢!!
注:发送与接收创建了两个不同的socket。
接收:
 System.IO.FileStream fs = null;                  
EndPoint mip = (EndPoint)new IPEndPoint(IPAddress.Parse("192.168.1.103"), 7100);
Socket sRec = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
sRec.Bind(mip);
while (true)
{
  byte[] by = new byte[1024];
  int Rcount = 0; 
  Rcount = sRec.Receive(by);  //此处停留
    if (Rcount > 0)
    {
       fs = new FileStream("c:\\aa.dat", FileMode.Append, FileAccess.Write);
                        fs.Write(by, 0, Rcount);
                        fs.Close();
      }
 }