UDP 多播消息 - 您可以使用系统。 NET.Sockets 命名空间发送 UDP 数据包并构建一个客户端来侦听它们,该客户端可以运行 n 个远程服务器。这不是错误检查,如果远程服务器没有启动,那么你就不走运了。
TCP 套接字连接 - 您可以使用系统。 NET.Sockets 命名空间发送 TCP 数据包并构建一个客户端来侦听它们,该客户端可以运行 n 个远程服务器。这是错误检查,如果远程服务器没有启动,那么你就不走运了。
希望这能给您一些指导。
享受!
I think you're asking how to send a message to a remote computer via c#. If so, you have several options see below:
Microsoft message queuing - Only if you need a super robust framework that gauarantees delivery of your message even if destination goes offline.
UDP multicast message - You can use the System.NET.Sockets namespace to send UDP packets and build a client to listen for them which can be run of n number of remote server. This is not error checking and if the remote server is not up then you are out of luck.
TCP socket connection - You can use the System.NET.Sockets namespace to send TCP packets and build a client to listen for them which can be run of n number of remote server. This is error checking and if the remote server is not up then you are out of luck.
发布评论
评论(2)
查看
NET SEND
命令。但是,需要在远程计算机上启用信使服务 - 您可以使用 PSEXEC 来启动它。Look into the
NET SEND
command. However, the messenger service needs to be enabled on the remote computer - you could use PSEXEC to start this.我认为您是在问如何通过 C# 向远程计算机发送消息。如果是这样,您可以选择以下几个选项:
Microsoft 消息队列 - 仅当您需要一个超级强大的框架来保证即使目的地离线时也能传送您的消息。
UDP 多播消息 - 您可以使用系统。 NET.Sockets 命名空间发送 UDP 数据包并构建一个客户端来侦听它们,该客户端可以运行 n 个远程服务器。这不是错误检查,如果远程服务器没有启动,那么你就不走运了。
TCP 套接字连接 - 您可以使用系统。 NET.Sockets 命名空间发送 TCP 数据包并构建一个客户端来侦听它们,该客户端可以运行 n 个远程服务器。这是错误检查,如果远程服务器没有启动,那么你就不走运了。
希望这能给您一些指导。
享受!
I think you're asking how to send a message to a remote computer via c#. If so, you have several options see below:
Microsoft message queuing - Only if you need a super robust framework that gauarantees delivery of your message even if destination goes offline.
UDP multicast message - You can use the System.NET.Sockets namespace to send UDP packets and build a client to listen for them which can be run of n number of remote server. This is not error checking and if the remote server is not up then you are out of luck.
TCP socket connection - You can use the System.NET.Sockets namespace to send TCP packets and build a client to listen for them which can be run of n number of remote server. This is error checking and if the remote server is not up then you are out of luck.
Hope this gives you some direction.
Enjoy!