问题描述
Hallo亲爱的大家,
如何在客户端和服务器之间建立连接,而不是使用TCP/IP(Socket)?
我听说有可能,可以从给定的URL发布和获取消息.例如,考虑有两台机器MachineA和MachineB. MachineA必须始终检查给定URL上的传入消息,而MachineB则在该给定URL上发送或放入消息.反之亦然,MachineA可以充当MachineB,MachineB可以充当MachineA.
我认为可以将HttpListner类用于此类问题.
有可能吗?
谢谢
Hallo Dear Everyone,
How can I create a connection between client and server, rather than using TCP/IP(Socket)?
I have heard that is possible, posting and getting messages from a given URL. For example, consider there two machines, MachineA and MachineB. MachineA has to always check for an incoming message on at a given URL, and MachineB sends or puts a message on that given URL. This has to work in vice versa, MachineA may act as MachineB and MachineB may act as MachineA.
I think it is possible to use the HttpListner class for such problem.
Is that possible?
Thank You
推荐答案
这篇关于沟通的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!