public RemoteUDPStatistics(UDPListener aListener, int aTimerResolutionMiliSec) { Listener = aListener; TimerResolutionMiliSec = aTimerResolutionMiliSec; PreviousNumberOfFrames = 0; FpsTimer = new System.Timers.Timer(); FpsTimer.Interval = TimerResolutionMiliSec; FpsTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent); FpsTimer.Start(); }
public RemoteUDPStatistics( UDPListener aListener, int aTimerResolutionMiliSec) { Listener = aListener; TimerResolutionMiliSec = aTimerResolutionMiliSec; PreviousNumberOfFrames = 0; FpsTimer = new System.Timers.Timer(); FpsTimer.Interval = TimerResolutionMiliSec; FpsTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent); FpsTimer.Start(); }
public UDPListenerCameraDevice(string IpAddress, int Port) { PacketReconstructors = new PacketReconstructor(new Packet().GetBytes().Length, PacketReconstructedCBHandler); aUDPListener = new UDPListener(Port, ReceivedHandler); aUDPStatistics = new RemoteUDPStatistics(aUDPListener, 1000); ImageConverter = TypeDescriptor.GetConverter(typeof(Bitmap)); //Thread t = new Thread(ReceiveData); //t.IsBackground = false; //t.Priority = ThreadPriority.Highest; //t.Start(); }