Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

Too large message?

$
0
0
When a player connects I send a pretty big message with all the needed data of the game. It's a lot of data, but will be send only once. I get an error, however, stating that I'm writing too much to the NetworkWriter:

"NetworkWriter WriteBytes: buffer is too large (180221) bytes. The maximum buffer size is 64K bytes." when I use a byte array, and

"IndexOutOfRangeException: Serialize(string) too long: 180221" if I use the string representation of the data.

Why is there a limit on the size...

Too large message?

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>