First, you need to run the relay peer on a computer accessible from both your mobile device and your target JXTA community.
首先,您需要在计算机上运行中继对等点(必须可以从移动设备和目标JXTA社区访问该计算机)。
Thus, the message we send above will be available to the same mobile peer from the relay.
因此,我们上面所发送的消息对于来自该中继的同一移动对等点来说将是可用的。
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).
您可以研究最新的来自该项目公共CVS服务器的jxme源代码-中继和J2ME对等点库(请参阅参考资料)。
The poll() method polls the relay for messages addressed to this mobile peer.
poll()方法在中继上轮询发送给这个移动对等点的消息。
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.
当然,在实际部署中,移动对等点可以在任何移动设备上运行,而且您可以只需将localhost更改成您的中继计算机的IP地址。
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.
在J2ME仿真器上运行的示例移动对等点通过在仿真器的主机PC (localhost)的9700端口运行的JXME中继来执行许多操作。
It specifies the JXTA tasks that a mobile peer can perform through the relay. There are several useful methods in the PeerNetwork class.
它指定了移动对等点可以通过中继执行的JXTA任务。
After the pipe is created successfully, the relay generates a binary message to the mobile peer.
成功地创建了管道之后,中继生成了到移动对等点的二进制消息。
After the pipe is created successfully, the relay generates a binary message to the mobile peer.
成功地创建了管道之后,中继生成了到移动对等点的二进制消息。
应用推荐