首先,您需要在计算机上运行中继对等点(必须可以从移动设备和目标JXTA社区访问该计算机)。
First, you need to run the relay peer on a computer accessible from both your mobile device and your target JXTA community.
作为开发人员,我们不必担心移动-到-中继二进制协议的确切格式和中继对等点的确切实现。
As developers, we do not need to worry about the exact format of the mobile-to-relay binary protocols and the exact implementation of relay peers.
成功地创建了管道之后,中继生成了到移动对等点的二进制消息。
After the pipe is created successfully, the relay generates a binary message to the mobile peer.
您可以研究最新的来自该项目公共CVS服务器的jxme源代码-中继和J2ME对等点库(请参阅参考资料)。
You can check out the latest JXME source code — both the relay and J2ME peer libraries — from the project's public CVS server (see Resources).
中继本身是集中的JXTA对等点,它们完全有能力处理管道、公告和对等点组服务。
The relays themselves are rendezvous JXTA peers that have full capabilities to handle pipes, advertisements, and peer group services.
该中继与其它对等点及管道相互操作,并使用组服务。
The relay interacts with other peers and pipes, and USES group services.
中继担当代表其移动对等点的代理。
poll()方法在中继上轮询发送给这个移动对等点的消息。
The poll() method polls the relay for messages addressed to this mobile peer.
create方法通过中继代理在JXTA网络上创建对等点、组和管道。
The create method creates peers, groups, and pipes on the JXTA network through the relay proxy.
在J2ME仿真器上运行的示例移动对等点通过在仿真器的主机PC (localhost)的9700端口运行的JXME中继来执行许多操作。
The example mobile peer running on a J2ME emulator performs a number of actions via a JXME relay running on the emulator's host PC (localhost) at port 9700.
当然,在实际部署中,移动对等点可以在任何移动设备上运行,而且您可以只需将localhost更改成您的中继计算机的IP地址。
Of course, in real-world deployment, the mobile peer can run on any mobile device, and you can just change localhost to the IP address of your relay computer.
中继在移动对等点之间来回路由(中继)消息。
JXME使用中继来连接轻量级的移动对等点与JXTA网络的其余部分。
JXME USES relays to connect lightweight mobile peers to the rest of the JXTA network.
它指定了移动对等点可以通过中继执行的JXTA任务。
It specifies the JXTA tasks that a mobile peer can perform through the relay. There are several useful methods in the PeerNetwork class.
移动对等点使用符合jxta二进制消息格式的消息,通过基于HTTP的二进制连接来与中继进行通信。
Mobile peers communicate with relays through binary-over-HTTP connections using messages conforming to the JXTA binary message format. Relays offer a number of peer services to mobile peers.
移动对等点使用符合jxta二进制消息格式的消息,通过基于HTTP的二进制连接来与中继进行通信。
Mobile peers communicate with relays through binary-over-HTTP connections using messages conforming to the JXTA binary message format. Relays offer a number of peer services to mobile peers.
应用推荐