Note the use of ACE_INET_Addr in the recv method: This helps capture the peer computer from which the data was being transmitted.
注意recv方法中对ACE_INET_Addr的使用方法:这有助于捕捉正在传输数据的对等计算机。
First, you need to run the relay peer on a computer accessible from both your mobile device and your target JXTA community.
首先,您需要在计算机上运行中继对等点(必须可以从移动设备和目标JXTA社区访问该计算机)。
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地址。
应用推荐