大约有 240 项符合查询结果(耗时:0.0052秒) [XML]
Pinging servers in Python
In Python, is there a way to ping a server through ICMP and return TRUE if the server responds, or FALSE if there is no response?
...
Is it possible to ping a server from Javascript?
... dependences on other parts of the source but you get the idea).
function Pinger_ping(ip, callback) {
if(!this.inUse) {
this.inUse = true;
this.callback = callback
this.ip = ip;
var _that = this;
this.img = new Image();
this.img.onload = function() {_that.good();};
...
Sending websocket ping/pong frame from browser
I keep reading about ping/pong messages in websockets to keep the connection alive, but I'm not sure what they are. Is it a distinct frame type? (I don't see any methods on a javascript WebSocket object in chrome related to ping-pong). Or is it just a design pattern (e.g. I literally send "ping" o...
Using ping in c#
When I Ping a remote system with windows it says there is no reply, but when I ping with c# it says success. Windows is correct, the device is not connected. Why is my code able to successfully ping when Windows is not?
...
How to sleep for five seconds in a batch file/cmd [duplicate]
Windows's Snipping tool can capture the screen, but sometimes I want to capture the screen after five seconds, such as taking an image being displayed by the webcam. (Run the script and smile at the camera, for example.)
...
Windows下 C++网络延时检测 - C/C++ - 清泛网 - 专注C/C++及内核技术
...这个功能是如何实现的呢?直接上代码吧,亲测可用:
Ping.h
#ifndef CPING_H
#define CPING_H
#include <windows.h>
#include <conio.h>
#include <winnt.h>
#define PING_TIMES 2 //ping 4 次
typedef struct _IPINFO
{
unsigned char Ttl; // Time To Live
unsigned ch...
Why does InetAddress.isReachable return false, when I can ping the IP address?
Why does isReachable return false ? I can ping the IP.
10 Answers
10
...
What is the best way to check for Internet connectivity using .NET?
...
This is probably better than pinging Google, because I think we have no guarantee that Google continues to respond to pings. On the other hand, I cannot image a world where www.google.com does not return some HTML :)
– Daniel Vassal...
How to wait in a batch script? [duplicate]
...
You can ping an address that surely doesn't exist and specify the desired timeout:
ping 192.0.2.2 -n 1 -w 10000 > nul
And since the address does not exists, it'll wait 10,000 ms (10 seconds) and returns.
The -w 10000 part spe...
ping response “Request timed out.” vs “Destination Host unreachable”
When I ping an IP address, what is the difference between Request timed out and Destination host unreachable returned from the command?
...