多连接蓝牙应用
我正在开发一个可以通过蓝牙玩的 J2ME MIDP 2.0 游戏,
它类似于井字游戏,玩家交换回合直到游戏结束,
问题是我想给两个玩家重新启动游戏或退出的能力
在任何时候,但我只有一个连接来传输游戏相关数据,我想知道我是否可以同时在两个设备之间有两个单独的连接,一个用于例如。游戏管理(重启、退出等..)和其他针对游戏数据的逻辑分开。
或者您可以这样说:两个 MIDP 设备之间是否可以同时建立多个蓝牙连接?
提前致谢
I am developing a J2ME MIDP 2.0 game that can can be played over bluetooth,
it is similar to tic tac toe where players exchange turns until the game is over,
the problem is that i want to give the both players the ability to restart the game or quit
at any time but i only have one connection for transferring game related data, and i wonder if i could have two separate connections between the two devices at the same time, one for eg. game management (restart, quit, etc ..) and the other for game data to separate the logic.
or you could put it this way : is it possible to have multiple bluetooth connections between two MIDP devices at the same time ?
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为对于蓝牙。通过 j2me 移动应用程序,Midp 设备最多只连接一台设备,并且一次最多只启用一个连接。因此没有机会进行多个连接。
I think for bluetooth.Via j2me mobile application the Midp device is connected at most only one device and at most at a time only one connection is enabled.So there is no chance of going to multiple connections.