Ping远程计算机(C#) [英] Ping remote computer (C#)

查看:84
本文介绍了Ping远程计算机(C#)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。



我正试图解决我的C#项目的问题。



我想使用 - Ping - ping ping远程计算机或服务器,但我不知道如何使用它。



项目类型:ping远程计算机或服务器(控制台应用程序)。

Hi guys.

I´m trying to solve a problem on my C# project.

I want to ping a remote computer or server using - Ping - class but I don´t know how to use it.

Project type: ping remote computer or server (console app).

推荐答案

如果你在这里包含了这个类的定义,我们也许可以提供帮助,否则,我只能说是



输入:该类可能会采用某种形式的IP地址(可能是字符串)或目标服务器名称,它将通过DNS查找/解析



输出:很难说 - 也许是一个布尔值来说明目标地址是否可以使用ICMP协议(即ping)访问,或者可能是一个字符串或字符串数​​组要写入控制台



但这是没有更多信息的猜测



'g'
If you included the definition of the class here, we might be able to help, else, all I can say is

Input : The class will probably take some form of IP address (perhaps as a string) or 'target server Name' which it will lookup/resolve via DNS

Output : Hard to say - maybe a boolean to say if the target address is reachable using ICMP Protocol (ie ping), or maybe a string or array of strings meant to be written to the console

But this is guesswork without more info from you

'g'


这篇关于Ping远程计算机(C#)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆