linux fixes

This commit is contained in:
Erwin Coumans 2020-03-20 20:19:15 -07:00
parent c4898ed3e3
commit 1e3bc22483
4 changed files with 5 additions and 4 deletions

View File

@ -507,9 +507,10 @@ void TCPThreadFunc(void* userPtr, void* lsMemory)
args->m_cs->unlock();
} while (cachedSharedParam != eTCPRequestTerminate);
#ifdef BT_ENABLE_CLSOCKET
socket.Close();
socket.Shutdown(CSimpleSocket::Both);
#endif
}
else
{

View File

@ -130,7 +130,7 @@ struct RemoteGUIHelperTCPInternalData
int rBytes = m_tcpSocket.Receive(maxLen);
if (rBytes <= 0)
return false;
return 0;
//append to tmp buffer
//recBytes

View File

@ -314,7 +314,7 @@ B3_SHARED_API b3PhysicsClientHandle b3CreateInProcessPhysicsServerFromExistingEx
return (b3PhysicsClientHandle)cl;
}
#include "RemoteGuiHelperTCP.h"
#include "RemoteGUIHelperTCP.h"
B3_SHARED_API b3PhysicsClientHandle b3CreateInProcessPhysicsServerFromExistingExampleBrowserAndConnectTCP(const char* hostName, int port)
{

View File

@ -129,7 +129,7 @@ sources = ["examples/pybullet/pybullet.c"]\
+["examples/SharedMemory/GraphicsClientExample.cpp"]\
+["examples/SharedMemory/GraphicsServerExample.cpp"]\
+["examples/SharedMemory/RemoteGUIHelper.cpp"]\
+["examples/SharedMemory/RemoteGuiHelperTCP.cpp"]\
+["examples/SharedMemory/RemoteGUIHelperTCP.cpp"]\
+["examples/SharedMemory/PhysicsServerExample.cpp"]\
+["examples/SharedMemory/PhysicsServerExampleBullet2.cpp"]\
+["examples/SharedMemory/SharedMemoryInProcessPhysicsC_API.cpp"]\