visual studio 2010 - ping IP addresses constantly -
i project engineer , working on multiplexer system , writing software control system using visual basic 2010 company won't spend money profession software developer. main program working have quick question people more experienced. have 10 x ethernet devices within system (topside , subsea) need monitor connection status of.
the way going pinging each ip address in sequence on , on in loop , if connected/disconnected change pitcurebox imagelist control show connection status. done in new thread stop main interface becoming unresponsive , works slow update of course, so...
my question guys there better way of showing connected/disconnected ip addresses on system? have searched internet find isn't quite i'm looking for, or i'm sh*te @ searching.
thank time.
since using ui-application, have @ ping
-class async method pinging, depending on normal ping times , how heavy network traffic change ping time, @ least once second needed.
in form use timer calls method, ex async void updatemachinestatus(ipadress adr)
awaits call pinger, ie var result = await ping.sendpingasync(adr)
, , something. use non-blocking wait , not cream system resources.
harness power of async!
Comments
Post a Comment