From cf21da4c9d42448841948f41fbbdab069a57df38 Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Fri, 4 Nov 2016 17:44:16 -0700 Subject: [PATCH] fix a few issues in UDP networking --- examples/SharedMemory/PhysicsServerCommandProcessor.cpp | 2 +- examples/SharedMemory/SharedMemoryCommands.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp index 4df28832c..763156d86 100644 --- a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp +++ b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp @@ -2195,7 +2195,7 @@ bool PhysicsServerCommandProcessor::processCommand(const struct SharedMemoryComm bufferServerToClient[i] = memDna[i]; } serverCmd.m_type = CMD_REQUEST_INTERNAL_DATA_COMPLETED; - serverCmd.m_numDataStreamBytes = bufferSizeInBytes; + serverCmd.m_numDataStreamBytes = sz; } break; diff --git a/examples/SharedMemory/SharedMemoryCommands.h b/examples/SharedMemory/SharedMemoryCommands.h index 2cfadeaa7..8680acd18 100644 --- a/examples/SharedMemory/SharedMemoryCommands.h +++ b/examples/SharedMemory/SharedMemoryCommands.h @@ -24,7 +24,7 @@ typedef unsigned long long int smUint64_t; #endif -#define SHARED_MEMORY_MAX_STREAM_CHUNK_SIZE (256*1024) +#define SHARED_MEMORY_MAX_STREAM_CHUNK_SIZE (512*1024) #define SHARED_MEMORY_SERVER_TEST_C #define MAX_DEGREE_OF_FREEDOM 128