使用ICMP VB.NET的简单客户端/服务器应用程序 [英] Simple client/server app using ICMP VB.NET

查看:125
本文介绍了使用ICMP VB.NET的简单客户端/服务器应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,请问如何在VB.NET中使用ICMP协议编写简单的客户端/服务器应用程序.客户端将"Hello Server"发送到服务器,服务器回复"Hello Client".我知道如何使用tcpclient和tcplistener完成此操作,但是我需要使用ICMP协议进行此操作.请帮助.

在此先感谢

hello, pls how can i write a simple client/server application using ICMP protocol in VB.NET. The client sends "Hello Server" to the server and the server replies with "Hello Client". I know how this can be done using tcpclient and tcplistener, but i need to do this using ICMP protocol. Pls help.

Thanks in advance

推荐答案

您显然不知道什么是(I)互联网(C)控制(M)消息(P)协议或使用了什么协议for.

网络设备和诊断应用程序使用ICMP在设备之间发送错误消息,例如目标网络不可达"等.

它并非设计用于最终用户应用程序.

出于安全原因,在某些公司网络(无论如何我也曾经去过)中也对ICMP进行了某种程度的过滤,因此您的应用程序无论如何都无法在那些环境中运行.
You apparently have no idea what (I)nternet (C)ontrol (M)essage (P)rotocol is or what it''s used for.

ICMP is used by network devices and diagnostic applications to send error messages between devices, such as "Destination network unreachable" and the like.

It''s NOT designed to be used in end-user applications.

ICMP is also filtered to some extent in some corporate networks (that I''ve been at anyway) for security reasons so your application won''t work in those environments anyway.


这里是一个简单的步骤,只需参考
1.创建数据库.
2.创建Web服务以将数据写入数据库.
3.创建网站.
4.创建网页以显示数据.
5.创建网页以将数据发布到Web服务.
(可选)创建桌面应用程序以将数据发布到Web服务.
创建桌面应用程序是可选的,因为您可以通过网站执行所需的操作.
Here is a simple step, just refer
1.Create Database.
2.Create Web Service to write data to database.
3.Create Web Site.
4.Create web page to display data.
5.Create web page to post data to web service.
Optionally, create desktop application to post data to web service.
Creating a desktop application is optional because you can do what you need through a web site.


这篇关于使用ICMP VB.NET的简单客户端/服务器应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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