C#编程小实例(一)(Check internet connectivity and ping a host in C# 用C#查看互联网连接以及ping一个主机)(未看)
This is a snippet that has 4 methods, 1 enum and 1 Win32 API that will first check to make sure the "pinger" has an actual connection, then it sends the ping 4 times to the pinged host and returns the results
Language: C# |
|
| Last Modified: November 10, 2008 | |
| Instructions: Need references to the following Namespaces: using System.Runtime.InteropServices; using System.Net; using System.Net.NetworkInformation; using System.Net.Sockets; |
|
Snippet
|
|
posted on 2009-01-23 17:11 Zihuatanejo 阅读(439) 评论(0) 收藏 举报
浙公网安备 33010602011771号