English 中文(简体)
在使用“蓝色”时,是否有可能用同一装置使用两种KSession?
原标题:Is it possible to have two instances of GKSession on the same device when using Bluetooth?

我写的是相互交流的游戏,我认为我会制造两例GKSession。 一届会议安排在GKSessionModeServer,另一届为GKSessionModeClient。 当我打电话给同龄人WithConnectionState时,服务器就得到适当报告:在客户同行上,每届会议都有不同的同龄人。 但是,当我试图与服务器连接时,我收到电文:与Error联系:与错误描述“在等待发出的邀请时失败”。

在Wi-Fi可用时,使用两个GKSession。 我担心的是,布兰托西人有一些限制,这种限制令人不安,但我不相信。 我可以改写这部法典,在服务器上使用单一的GKSession,但如果我知道其他人会去做两件事,我就不将特殊案例编码。

如果我放弃Wi-Fi和Blutoothi,就会产生错误“不可用网络”,如果两者都转而去,我就没有。 这使我认为,当另一个Pi公司位于附近时,它就赢得了工作。

最佳回答

我改写了这部法典,因此我只想在接收装置上安装一台GKSession,并在服务器与当地客户之间直接发送数据而不使用GKSession。 最后,我可以用两个装置测试,并适当相互连接。 因此,教训是,只有一名GKSession在东道国,它将与蓝色人和Wi-Fi合作。

问题回答

暂无回答




相关问题
Run EXE from client side

I need run an exe file from client side. The Exe file exist in my C: Directory. I need run this exe file from my WEB site. How can I co this?

Security in PHP

I ve written some PHP scripts to do some server-side work on a headless linux server machine on a LAN. For example, I have http://ipadress/php/operations.php?operation=registerUser&uName=X&...

EMAIL server FSP model

For my assignment I need to develop FSP model for email server and client. I manage to write simple model which describes one user, server and his mailbox, but I am having problems changing this ...

Calling a service from a callback method in Client

I have a scenario where, upon receiving a command on one of the callback methods in client, the client needs to call another service. For example: In OnNewCommand() callback method client receives a ...

ServiceContractGenerator vs ServiceDescriptionImporter

I m trying to build a light-weight SOAP client without using Add Service Reference. Ideally, this client should work for as many services as possible. Currently, it uses ServiceDescriptionImporter to ...

Simple server and client request/response in C#

OK. I just want to know if this can be done. I m using C# asp.net language. I want to send a structure to a webserver from a webpage (much like you you can pass a structure to a function). The ...

热门标签