由相同应用组成的分布式网络
我带着相当哲学的问题来到这里:
假设我们有两个相同的应用程序,具有相似的设置范围。 我们希望这些应用程序可以通过套接字进行通信。
据我所知,在点对点应用程序中,其中之一应该是主动(客户端)和被动(服务器),即客户端“连接”,服务器应该处于“接受”状态。这导致我们必须在运行它们之前知道谁是活跃的,谁不是活跃的。
正如我之前提到的,我想让这个应用程序完全相同。并让两个相同的应用程序可以连接到网络上,以某种方式做出明智的决定谁是谁。
考虑这个问题是因为我希望每个新应用程序都可以连接到其他应用程序的网络,而只需知道其中一个应用程序的 IP 地址。
免责声明:这不是恶意软件。它是ERP系统的传输层。
如果有任何想法、链接等,我将非常高兴。
I've come here with quite philosophical problem:
suppose we have two identical application, with similar range of settings.
and we'd like these application can communicate via sockets.
As far as I know in point-to-point application one of them should be active(client) and passiv(server) i.e. client do "connect" and the server should be in state of "accept". This lead us to necessity to know who is active and who isn't before we run them.
As I've previously mentioned I want make this application identical. And let two identical application can be connected throw net, making somehow smart decisions Who is Who.
This question is considered due to the fact that I want each new application can be connected to the net of other applications with just knowing ip adress of one of them.
Disclaimer: It's not a malware. It's a transport layer of ERP system.
I would be very pleased for any ideas, link etc.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
选项:
Options: