1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-15 22:56:30 +09:00

Fragmentation fix

This commit is contained in:
lidgren
2010-06-17 17:47:15 +00:00
parent 3bd903aeb8
commit f65504518c
3 changed files with 11 additions and 2 deletions

View File

@@ -12,6 +12,7 @@ namespace BarebonesClient
{
NetPeerConfiguration config = new NetPeerConfiguration("barebones");
config.SimulatedLoss = 0.1f;
config.EnableMessageType(NetIncomingMessageType.VerboseDebugMessage);
NetClient client = new NetClient(config);
client.Start();
@@ -39,7 +40,7 @@ namespace BarebonesClient
// temporary code to verify issue with large messages
StringBuilder bdr = new StringBuilder();
for (int i = 0; i < 1000; i++)
for (int i = 0; i < 400; i++)
bdr.Append("Hallonsmurf" + i.ToString());
om.Write(bdr.ToString());