C# Class Hank.BrowserParse.NetStatusHelper

网络状态监测
ファイルを表示 Open project: hanksoft/KillJD

Public Methods

Method Description
CheckServeStatus ( string urls ) : void

检测网络连接状态

NetPing ( string urls, int &errorCount ) : bool

Ping命令检测网络是否畅通

Private Methods

Method Description
CmdPing ( string strIp ) : string

通过Ping命令获取网络情况

InternetGetConnectedState ( int &dwFlag, int dwReserved ) : bool
LocalConnectionStatus ( ) : bool

判断本地的连接状态

Method Details

CheckServeStatus() public static method

检测网络连接状态
public static CheckServeStatus ( string urls ) : void
urls string
return void

NetPing() public static method

Ping命令检测网络是否畅通
public static NetPing ( string urls, int &errorCount ) : bool
urls string URL数据
errorCount int ping时连接失败个数
return bool