Collection of unedited thoughts and bits of knowledge I can't seem to remember
using System.Net.Sockets; private bool ConnectionExists() { try { TcpClient clnt = new TcpClient("www.google.com", 80); clnt.Close(); return true; } catch (System.Exception) { return false; } }
using
System.Net.Sockets;
private bool ConnectionExists() { try { TcpClient clnt = new TcpClient("www.google.com", 80); clnt.Close(); return true; } catch (System.Exception) { return false; } }
Post a Comment
No comments:
Post a Comment