Maximum size of GKTurnBasedMatch matchData

北城余情 提交于 2019-12-22 10:45:35

问题


I've been searching for a definitive answer on this, but I get some inconsistent answers. Apple docs state 64k bytes. However, online I find multiple sources that say 4k bytes is the max. Is this a difference between iOS 5 and iOS 6?


回答1:


It was 4KB, now its 64KB.

Source: https://developer.apple.com/news/index.php?id=02012012a




回答2:


Definative, or not, but I think that the previous limit was 4 kB, and that that limit now has been raised to 64k. Not 100% sure, though.




回答3:


There is a read only property called: matchDataMaximumSize of the GKTurnBasedMatch instance that will return "[Returns the limit the Game Center servers place on the size of the match data. (read-only)][1]"




回答4:


According to documentation following is data size limit
1. Limit the size of unreliable messages to 1000 bytes or smaller in size.
2. Limit the size of reliable messages to 87 kilobytes or smaller in size.

[ http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/GameKit_Guide/Matchmaking/Matchmaking.html ]


来源:https://stackoverflow.com/questions/14157171/maximum-size-of-gkturnbasedmatch-matchdata

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!