Pack size limit for iPhone games?

I create a multiplayer game for the iPhone using a multiplayer tutorial as a skeleton in the following link http://www.raywenderlich.com/3276/how-to-make-a-simple-multiplayer-game-with-game-center-tutorial-part -12 .

When using the architecture that I use (GameCentre peer-to-peer connection), one of the devices acts as a server. I have a question, what is the packet size limit? On average, I need to send 890 bytes in one move ...

+6
source share
2 answers

Generally, you should not rely on the size of the network packet. Packets can be fragmented (via TCP / IP and reassembled by the stack), or data can be packetized based on the MTU send / receive parameters.

+1
source

In the Game Kit Programming Guide :

  • Limit the size of untrusted messages to 1000 bytes or less in size.
  • Limit the size of trusted messages to 87 kilobytes or less.
+1
source

Source: https://habr.com/ru/post/914853/


All Articles