C# 클래스 Hank.BrowserParse.NetStatusHelper

网络状态监测
파일 보기 프로젝트 열기: hanksoft/KillJD

공개 메소드들

메소드 설명
CheckServeStatus ( string urls ) : void

检测网络连接状态

NetPing ( string urls, int &errorCount ) : bool

Ping命令检测网络是否畅通

비공개 메소드들

메소드 설명
CmdPing ( string strIp ) : string

通过Ping命令获取网络情况

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

判断本地的连接状态

메소드 상세

CheckServeStatus() 공개 정적인 메소드

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

NetPing() 공개 정적인 메소드

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