开发网络中计算机之间通信的应用程序
我需要在以下场景中为网络中的计算机开发软件应用程序: 网络中的计算机由另一台运行控制器程序的主计算机监控。控制器是一个软件应用程序,它执行网络发现、从发现的计算机获取数据并在发现的计算机上执行一组操作。
我已经取得了进步,直到这个水平: 1. 网络发现程序。 o/p 是 n/w 上所有活动计算机的 IP。 2.实现RMI的基本程序(拒绝套接字,因为程序可能有不同的实现)
我的疑问: 1.假设我需要发送要在不同IP的客户端机器上执行的操作指令,我如何使用RMI来做到这一点?首先如何使用 RMI 连接到其他客户端? 2.连接后,如何与控制器传输指令?
请帮帮我!
I need to develop a software application for a computers in a network in the following scenario:
Computers in a network are monitored by another master computer running a controller program. The controller is a software appln which performs network discovery, gets data from the discovered computers and performs a set of operations on the discovered computers.
I have made progress until this level:
1. Program for network discovery. o/p is IPs of all the active machines on n/w.
2. Basic program implementing RMI(rejected sockets as the program might have diff implementations)
My doubts:
1.Assuming that I need to send the instructions of operation to be executed on client machines with diff IPs, how do I do it with RMI? How do I connect to other clients,in the first place using RMI?
2.After connecting, how do I transmit instructions to and fro the controller?
Please help me out!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试阅读 JNDI 教程。它涵盖了发现其他计算机并以可能对您的项目有用的级别进行通信的各个方面。该教程位于此处: http://download.oracle.com/javase/jndi /tutorial/trailmap.html
You might try reading the JNDI tutorial. It covers aspects of discovering other computers and communicating them at a level that may be useful to your project. The tutorial is located here: http://download.oracle.com/javase/jndi/tutorial/trailmap.html