public ControlReceiver(IPAddress aInterface, IPAddress aMulticast) { iReader = new UdpMulticastReader(aInterface, aMulticast, 51979); iBuf = new byte[kMaxBufBytes]; iThread = new Thread(new ThreadStart(Run)); iThread.IsBackground = true; iThread.Name = "Multipus Control Receiver"; }
public Receiver(IPAddress aInterface, IPAddress aMulticast, int aPort) { iMulticastReader = new UdpMulticastReader(aInterface, aMulticast, aPort); iSrb = new Srb(kMaxRead, iMulticastReader); iFrameSupplyUdp = new FrameSupplyUdp(iSrb); iFrameWriterDisk = new FrameWriterDisk(iFrameSupplyUdp); iFrameFilter = new FrameFilter(iFrameWriterDisk, new FrameErrorHandler()); iThread = new Thread(new ThreadStart(Run)); iThread.IsBackground = true; iThread.Name = "Multipus Control Receiver"; }
static void Main(string[] aArgs) { Console.WriteLine("Starting Receiver"); AppNetwork app = new AppNetwork(aArgs); app.Start(); byte[] addr = { 239, 255, 19, 72 }; IPAddress ip = new IPAddress(addr); UdpMulticastReader reader = new UdpMulticastReader(app.Interface, ip, 51972); Thread.Sleep(500000); }