more tcp networking stuff (remove shared memory from tcp example)

This commit is contained in:
Erwin Coumans
2020-03-21 18:47:55 -07:00
parent c4898ed3e3
commit d71a787481
2 changed files with 159 additions and 226 deletions

View File

@@ -4,8 +4,7 @@
#include "../CommonInterfaces/CommonGUIHelperInterface.h"
#include "Bullet3Common/b3Logging.h"
#include "GraphicsSharedMemoryCommands.h"
#include "PosixSharedMemory.h"
#include "Win32SharedMemory.h"
#include "GraphicsSharedMemoryBlock.h"
#include "Bullet3Common/b3Scalar.h"
@@ -22,7 +21,7 @@ static unsigned int b3DeserializeInt3(const unsigned char* input)
unsigned int tmp = (input[3] << 24) + (input[2] << 16) + (input[1] << 8) + input[0];
return tmp;
}
static bool gVerboseNetworkMessagesClient3 = true;
static bool gVerboseNetworkMessagesClient3 = false;
const char* cmd2txt[]=
{
@@ -206,7 +205,7 @@ struct RemoteGUIHelperTCPInternalData
}
int key = GRAPHICS_SHARED_MEMORY_MAGIC_NUMBER;
m_tcpSocket.Send((uint8*)&key, 4);
m_tcpSocket.SetBlocking();
return m_isConnected;
}