title: What the best practice for determine connection to internet?
body: <p>I should to check the connection to internet and keep that connection alive..
  so i have few ways to do that, by using tcpclient or by using ping class..
  and open new thread for that for every time slice check if the connection is alive..
  what the best practice for that?
  thanks!</p>
  
  <p>Edit:
  I see that have similiar question to that at: <a href="https://stackoverflow.com/questions/2031824/what-is-the-best-way-to-check-for-internet-connectivity-using-net">What is the best way to check for Internet connectivity using .NET?</a></p>
  
  <p>But there the question is using WebClient that is slower than using TcpClient.. so it not the best practice for check the connection...</p>