connectivity

Ping an IP, pop-up messages and save results to txt file - VBS

做~自己de王妃 提交于 2021-02-08 09:49:32
问题 I'm making a simple script that pings an address and save the results in a txt file. The purpose is solely to make it convenient for the lay user that don't know how to: open the "run" box; open cmd; ping an address; copy results; past to a txt file. So far, I have made this .bat file, but I wanted it on vbs for more functionalities and better visual. .BAT APPROACH @ECHO OFF :LOOPSTART time /T >> PingTest.txt ping 1.1.1.1 -n 100 >> %userprofile%\Desktop\PingTest.txt exit GOTO LOOPSTART .VBS

Can I set the getaddrinfo timeout in Android for DefaultHttpClient?

生来就可爱ヽ(ⅴ<●) 提交于 2020-05-10 18:38:25
问题 In an Android app, I'm trying to test that the user has a working Internet connection. If you are interested, there is some background in a previous question Detecting limited network connectivity in Android? The code is basically like: try { HttpParams myParams = new BasicHttpParams(); HttpConnectionParams.setConnectionTimeout(myParams, 10000); HttpConnectionParams.setSoTimeout(myParams, 10000); httpClient = new DefaultHttpClient(myParams); request = new HttpHead(url); response = httpClient

Checking internet connection from C++ code

☆樱花仙子☆ 提交于 2020-05-10 06:59:05
问题 While working with large codebase for legacy applications, whenever I have seen a piece of code that checks whether an internet connection is active or not, I have mostly seen the uses of functions such as: InternetCheckConnection(L"http://www.google.com",FLAG_ICC_FORCE_CONNECTION,0) //or BOOL bConnected = IsNetworkAlive(&dwSens) //or InternetGetConnectedState(&dwReturnedFlag, 0) //or some other functions but there exists a very very simple way to do this where you wouldn't need to include

ConnectivityManager leaking, not sure how to resolve

為{幸葍}努か 提交于 2020-02-01 04:41:06
问题 So, I have this method that let's me know if the user has an active internet connection. It works well. However, leak canary has identified a memory leak associated with the connectivityManager. I am presently not closing the connectivityManager anywhere in my code at any time that I know of. I've tried to close the connectivityManager in onDestroy. Either that isn't an option or I don't know the code. Truth be told, I simply tried to get auto fill to tell me how to do it. No luck. public

ConnectivityManager leaking, not sure how to resolve

对着背影说爱祢 提交于 2020-02-01 04:41:06
问题 So, I have this method that let's me know if the user has an active internet connection. It works well. However, leak canary has identified a memory leak associated with the connectivityManager. I am presently not closing the connectivityManager anywhere in my code at any time that I know of. I've tried to close the connectivityManager in onDestroy. Either that isn't an option or I don't know the code. Truth be told, I simply tried to get auto fill to tell me how to do it. No luck. public

Zabbix Monitoring Tool Database Connection issue

荒凉一梦 提交于 2020-01-30 10:46:28
问题 I am trying to install Zabbix Monitoring server on Linux Cent OS 6.x. I have installed Zabbix 2.4 version on it. I have followed the following article of Zabbix to configure it: https://www.zabbix.com/documentation/2.4/manual/installation/install_from_packages Once I reach at IPAddress/zabbix at browser settings, I have successfully passed PHP settings and configuration stage. But, when I go to next steps where I have to apply database settings, it is not working. However, I have created

Java program and mySQL connectivity issue: No suitable driver found

一笑奈何 提交于 2020-01-11 10:26:12
问题 I've been having a problem with mySQL database connectivity. I'm getting an error: No suitable driver found for jdbc:mysql://127.0.0.1/sakila. I have installed mySQL workbench, and have the driver from here http://dev.mysql.com/downloads/connector/j/ I have saved mysql-connector-java-5.1.18-bin and set the classpath to C:\Program Files\Java\jre7\lib\mysql-connector-java-5.1.18-bin; and started the mysql workbench where the database is found. The code I am using is as follows: Which I am sure

How to manage a network down and avoid error with PKCS11Interop

空扰寡人 提交于 2020-01-04 13:36:23
问题 Using PKCS11Interop on Safenet HSMs, I got this error "Method C_OpenSession returned 2147484548" the error, in my documentation, is CKR_SMS_ERROR: " General error from secure messaging system - probably caused by HSM failure or network failure ". This confirm the problem it happens when the connectivity is lacking. The problem is when this happens, the service isn't able to resume the communication when the connectivity is back, until I restart manually the service managing the HSM access .

How to manage a network down and avoid error with PKCS11Interop

折月煮酒 提交于 2020-01-04 13:36:09
问题 Using PKCS11Interop on Safenet HSMs, I got this error "Method C_OpenSession returned 2147484548" the error, in my documentation, is CKR_SMS_ERROR: " General error from secure messaging system - probably caused by HSM failure or network failure ". This confirm the problem it happens when the connectivity is lacking. The problem is when this happens, the service isn't able to resume the communication when the connectivity is back, until I restart manually the service managing the HSM access .

requestRouteToHost returns false on wifi interface

北城以北 提交于 2019-12-31 02:11:08
问题 public boolean requestRouteToHost (int networkType, int hostAddress) This method in ConnectivityManager if used with networkType set to wifi interface always returns false. requestRouteToHost android says it was never implemented for the wifi interface. Even InetAddress.isReachable() always returns false for publicservers like google.com, java.com Is there any specific reason why they fail? The only way I could test if there was connectivity was by executing the "ping" by using runtime exec()